summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorYuwei Guan <ssawgyw@gmail.com>2022-11-15 09:35:37 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2022-11-28 23:46:33 +0300
commit66aee5aaa237e5a3475581b462b8b22e0944d264 (patch)
tree73e22b37e87475233a4c1875d56591802a83672b /fs/f2fs/super.c
parent777cd95b8066ced4e9a2534941b81f8ad98e74fb (diff)
downloadlinux-66aee5aaa237e5a3475581b462b8b22e0944d264.tar.xz
f2fs: change type for 'sbi->readdir_ra'
Before this patch, the varibale 'readdir_ra' takes effect if it's equal to '1' or not, so we can change type for it from 'int' to 'bool'. Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com> Reviewed-by: Chao Yu <chao@kernel.org> 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 05101cd4140b..31435c8645c8 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -4085,7 +4085,7 @@ static void f2fs_tuning_parameters(struct f2fs_sb_info *sbi)
1 << F2FS_IPU_HONOR_OPU_WRITE;
}
- sbi->readdir_ra = 1;
+ sbi->readdir_ra = true;
}
static int f2fs_fill_super(struct super_block *sb, void *data, int silent)