summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2022-08-30 14:13:23 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2022-10-04 22:31:42 +0200
commit280dfeae56e6fbfff21cfece356379e318ae10fe (patch)
tree948c34b7e78892b76d735f0a65cd1fa83859b4b8 /fs/f2fs
parentf2fs: simplify code in f2fs_prepare_decomp_mem (diff)
downloadlinux-280dfeae56e6fbfff21cfece356379e318ae10fe.tar.xz
linux-280dfeae56e6fbfff21cfece356379e318ae10fe.zip
f2fs: return the tmp_ptr directly in __bitmap_ptr
Just return tmp_ptr here, it's no need to dereference checkpoint pointer again. Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 088c3d1574b8..0cc2f7aa45db 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -2529,7 +2529,7 @@ static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag)
if (__cp_payload(sbi) > 0) {
if (flag == NAT_BITMAP)
- return &ckpt->sit_nat_version_bitmap;
+ return tmp_ptr;
else
return (unsigned char *)ckpt + F2FS_BLKSIZE;
} else {