aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorGravatar Yangtao Li <frank.li@vivo.com> 2022-10-25 14:50:25 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2022-11-01 17:56:04 -0700
commite5a0db6a9e2eafe50e3ebc73a8285ae561e7d850 (patch)
tree851799b999b3e3ac6cd18ff12646c3d4eea37b94 /fs/f2fs/super.c
parentf2fs: add missing bracket in doc (diff)
downloadlinux-e5a0db6a9e2eafe50e3ebc73a8285ae561e7d850.tar.gz
linux-e5a0db6a9e2eafe50e3ebc73a8285ae561e7d850.tar.bz2
linux-e5a0db6a9e2eafe50e3ebc73a8285ae561e7d850.zip
f2fs: replace gc_urgent_high_remaining with gc_remaining_trials
The user can set the trial count limit for GC urgent and idle mode with replaced gc_remaining_trials.. If GC thread gets to the limit, the mode will turn back to GC normal mode finally. It was applied only to GC_URGENT, while this patch expands it for GC_IDLE. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index e6365f040171..a43d8a46a6e5 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -3624,7 +3624,7 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
sbi->seq_file_ra_mul = MIN_RA_MUL;
sbi->max_fragment_chunk = DEF_FRAGMENT_SIZE;
sbi->max_fragment_hole = DEF_FRAGMENT_SIZE;
- spin_lock_init(&sbi->gc_urgent_high_lock);
+ spin_lock_init(&sbi->gc_remaining_trials_lock);
atomic64_set(&sbi->current_atomic_write, 0);
sbi->dir_level = DEF_DIR_LEVEL;