]> git.baikalelectronics.ru Git - kernel.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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 Jan 2022 01:40:04 +0000 (17:40 -0800)
commit743d7d90e178dc61bf64a59669ae17e4339e99d2
treef4980266db7e38e1eb75aacbe06cf8e7c56b8b45
parent6f6366501be82047e002c22f795aa19bf8b639d4
f2fs: fix to enable ATGC correctly via gc_idle sysfs interface

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: a7c1b3c38c8e ("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>
fs/f2fs/sysfs.c