TencentOS-kernel/fs/f2fs
Jaegeuk Kim 7cb219e784 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-03-16 16:43:55 +08:00
..
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
acl.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
acl.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
checkpoint.c f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
data.c f2fs: Return EOF on unaligned end of file DIO read 2021-03-16 16:36:14 +08:00
debug.c f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
dir.c f2fs: fix uninit-value in f2fs_lookup 2021-03-16 16:39:41 +08:00
extent_cache.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
f2fs.h f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
file.c f2fs: handle readonly filesystem in f2fs_ioc_shutdown() 2021-03-16 16:30:07 +08:00
gc.c f2fs: stop GC when the victim becomes fully valid 2021-03-16 16:36:41 +08:00
gc.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
hash.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
inline.c f2fs: fix error path in do_recover_data() 2021-03-16 16:34:49 +08:00
inode.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
namei.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
node.c f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
node.h f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
recovery.c f2fs: fix error path in do_recover_data() 2021-03-16 16:34:49 +08:00
segment.c f2fs: handle errors of f2fs_get_meta_page_nofail 2021-03-16 16:39:42 +08:00
segment.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
shrinker.c f2fs: avoid race condition for shrinker count 2021-03-16 16:43:55 +08:00
super.c f2fs: fix shift-out-of-bounds in sanity_check_raw_super() 2021-03-16 16:43:53 +08:00
sysfs.c f2fs: wait for sysfs kobject removal before freeing f2fs_sb_info 2021-03-16 16:38:58 +08:00
trace.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
trace.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
verity.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xattr.c f2fs: fix to avoid memory leakage in f2fs_listxattr 2021-03-16 16:26:43 +08:00
xattr.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00