Jaegeuk Kim 86db71810a f2fs: avoid race condition for shrinker count
[ Upstream commit a95ba66ac1457b76fe472c8e092ab1006271f16c ]

Light reported sometimes shinker gets nat_cnt < dirty_nat_cnt resulting in
wrong do_shinker work. Let's avoid to return insane overflowed value by adding
single tracking value.

Reported-by: Light Hsieh <Light.Hsieh@mediatek.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-06 14:48:40 +01:00
..
2019-05-08 21:23:11 -07:00
2018-09-12 13:07:10 -07:00
2020-11-05 11:43:13 +01:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2018-09-12 13:07:10 -07:00
2019-08-12 19:33:51 -07:00
2019-08-12 19:33:51 -07:00