aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorGravatar Yangtao Li <frank.li@vivo.com> 2022-11-19 03:18:39 +0800
committerGravatar Jaegeuk Kim <jaegeuk@kernel.org> 2023-01-06 15:13:41 -0800
commitfdb7ccc3f9cb316c399b072c7a75a106678eb421 (patch)
tree57349896f734142df8e93159d7920345a02537d8 /fs/f2fs/super.c
parentf2fs: refactor the hole reporting and allocation logic in f2fs_map_blocks (diff)
downloadlinux-fdb7ccc3f9cb316c399b072c7a75a106678eb421.tar.gz
linux-fdb7ccc3f9cb316c399b072c7a75a106678eb421.tar.bz2
linux-fdb7ccc3f9cb316c399b072c7a75a106678eb421.zip
f2fs: introduce IS_F2FS_IPU_* macro
IS_F2FS_IPU_* macro can be used to identify whether f2fs ipu related policies are enabled. BTW, convert to use BIT() instead of open code. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 1f812b9ce985..87d56a9883e6 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -4089,8 +4089,8 @@ static void f2fs_tuning_parameters(struct f2fs_sb_info *sbi)
if (f2fs_block_unit_discard(sbi))
SM_I(sbi)->dcc_info->discard_granularity =
MIN_DISCARD_GRANULARITY;
- SM_I(sbi)->ipu_policy = 1 << F2FS_IPU_FORCE |
- 1 << F2FS_IPU_HONOR_OPU_WRITE;
+ SM_I(sbi)->ipu_policy = BIT(F2FS_IPU_FORCE) |
+ BIT(F2FS_IPU_HONOR_OPU_WRITE);
}
sbi->readdir_ra = true;