diff options
author | Chao Yu <chao@kernel.org> | 2024-03-04 04:28:55 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-03-04 19:18:26 +0100 |
commit | 45809cd3bdac8743f08e42a32121e035aee69d88 (patch) | |
tree | f7551ba1b89380ac6e4cb2eab2dfd4efba05f088 /fs/f2fs/sysfs.c | |
parent | f2fs: fix to check return value of f2fs_gc_range (diff) | |
download | linux-45809cd3bdac8743f08e42a32121e035aee69d88.tar.xz linux-45809cd3bdac8743f08e42a32121e035aee69d88.zip |
f2fs: introduce SEGS_TO_BLKS/BLKS_TO_SEGS for cleanup
Just cleanup, no functional change.
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/sysfs.c')
-rw-r--r-- | fs/f2fs/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 906d2af2d849..10f308b3128f 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -493,8 +493,8 @@ out: spin_lock(&sbi->stat_lock); if (t > (unsigned long)(sbi->user_block_count - F2FS_OPTION(sbi).root_reserved_blocks - - (SM_I(sbi)->additional_reserved_segments << - sbi->log_blocks_per_seg))) { + SEGS_TO_BLKS(sbi, + SM_I(sbi)->additional_reserved_segments))) { spin_unlock(&sbi->stat_lock); return -EINVAL; } |