diff options
author | Zhiguo Niu <zhiguo.niu@unisoc.com> | 2024-08-01 03:33:51 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-08-21 02:56:27 +0200 |
commit | 8fb9f31984bdc0aaa1b0f7c7e7a27bd3137f8744 (patch) | |
tree | 29962d9d4bf230bda73199c3f4479b8698bfd698 /fs/f2fs/checkpoint.c | |
parent | f2fs: fix to use per-inode maxbytes and cleanup (diff) | |
download | linux-8fb9f31984bdc0aaa1b0f7c7e7a27bd3137f8744.tar.xz linux-8fb9f31984bdc0aaa1b0f7c7e7a27bd3137f8744.zip |
f2fs: clean up val{>>,<<}F2FS_BLKSIZE_BITS
Use F2FS_BYTES_TO_BLK(bytes) and F2FS_BLK_TO_BYTES(blk) for cleanup
Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index bdd96329dddd..f3d22b8ef2ff 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1551,7 +1551,7 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) blk = start_blk + BLKS_PER_SEG(sbi) - nm_i->nat_bits_blocks; for (i = 0; i < nm_i->nat_bits_blocks; i++) f2fs_update_meta_page(sbi, nm_i->nat_bits + - (i << F2FS_BLKSIZE_BITS), blk + i); + F2FS_BLK_TO_BYTES(i), blk + i); } /* write out checkpoint buffer at block 0 */ |