mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
f2fs: fix to enable ATGC correctly via gc_idle sysfs interface
[ Upstream commit7d19e3dab0] 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:093749e296("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>
This commit is contained in:
parent
f69aecb499
commit
d8c8dd97bb
|
|
@ -473,7 +473,7 @@ static ssize_t __sbi_store(struct f2fs_attr *a,
|
|||
} else if (t == GC_IDLE_AT) {
|
||||
if (!sbi->am.atgc_enabled)
|
||||
return -EINVAL;
|
||||
sbi->gc_mode = GC_AT;
|
||||
sbi->gc_mode = GC_IDLE_AT;
|
||||
} else {
|
||||
sbi->gc_mode = GC_NORMAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user