summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2023-02-16 14:53:24 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2023-03-30 00:17:37 +0200
commit447286ebadaafa551550704ff0b42eb08b1d1cb2 (patch)
tree54cc1edc083d17a0ce9fa43fd5a07623caf4c41b /fs/f2fs/checkpoint.c
parentf2fs: export compress_percent and compress_watermark entries (diff)
downloadlinux-447286ebadaafa551550704ff0b42eb08b1d1cb2.tar.xz
linux-447286ebadaafa551550704ff0b42eb08b1d1cb2.zip
f2fs: convert to use bitmap API
Let's use BIT() and GENMASK() instead of open it. Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 57e8ca187dc7..1e0164cde23d 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -982,7 +982,7 @@ int f2fs_get_valid_checkpoint(struct f2fs_sb_info *sbi)
cp_blk_no = le32_to_cpu(fsb->cp_blkaddr);
if (cur_page == cp2)
- cp_blk_no += 1 << le32_to_cpu(fsb->log_blocks_per_seg);
+ cp_blk_no += BIT(le32_to_cpu(fsb->log_blocks_per_seg));
for (i = 1; i < cp_blks; i++) {
void *sit_bitmap_ptr;