]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to enable ATGC correctly via gc_idle sysfs interface
authorChao Yu <chao@kernel.org>
Tue, 18 Jan 2022 03:48:02 +0000 (11:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:39 +0000 (13:57 +0200)
commitba7d90c0e893659284081830423e0073cf88976d
treedb8a87fae6a2d4f4d67c21a67670b5d4a923bfa6
parent31824613a42aacdcbeb325bf07a1c8247a11ebe2
f2fs: fix to enable ATGC correctly via gc_idle sysfs interface

[ Upstream commit 7d19e3dab0002e527052b0aaf986e8c32e5537bf ]

It needs to assign sbi->gc_mode with GC_IDLE_AT rather than GC_AT when
user tries to enable ATGC via gc_idle sysfs interface, fix it.

Fixes: 093749e296e2 ("f2fs: support age threshold based garbage collection")
Cc: Zhipeng Tan <tanzhipeng@hust.edu.cn>
Signed-off-by: Jicheng Shao <shaojicheng@hust.edu.cn>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/sysfs.c