f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count
Fixes 22ad0b6ab4 ("f2fs: add bitmaps for empty or full NAT blocks")
Signed-off-by Kinglong Mee <[email protected]>
--- fs/f2fs/checkpoint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/checkpoint.c +2 -1
@@ -1025,7 +1025,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);
Signature · 9 lines
2.9.3 ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford