Commit 10047f53 authored by Kinglong Mee's avatar Kinglong Mee Committed by Jaegeuk Kim

f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count

Fixes: 22ad0b6a ("f2fs: add bitmaps for empty or full NAT blocks")
Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent b71deadb
......@@ -1024,7 +1024,8 @@ static void update_ckpt_flags(struct f2fs_sb_info *sbi, struct cp_control *cpc)
spin_lock(&sbi->cp_lock);
if (cpc->reason == CP_UMOUNT && ckpt->cp_pack_total_block_count >
if (cpc->reason == CP_UMOUNT &&
le32_to_cpu(ckpt->cp_pack_total_block_count) >
sbi->blocks_per_seg - NM_I(sbi)->nat_bits_blocks)
disable_nat_bits(sbi, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment