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>
This commit is contained in:
parent
8140654e78
commit
280dfeae56
|
@ -2529,7 +2529,7 @@ static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag)
|
||||||
|
|
||||||
if (__cp_payload(sbi) > 0) {
|
if (__cp_payload(sbi) > 0) {
|
||||||
if (flag == NAT_BITMAP)
|
if (flag == NAT_BITMAP)
|
||||||
return &ckpt->sit_nat_version_bitmap;
|
return tmp_ptr;
|
||||||
else
|
else
|
||||||
return (unsigned char *)ckpt + F2FS_BLKSIZE;
|
return (unsigned char *)ckpt + F2FS_BLKSIZE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue