projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b71dead
)
f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count
author
Kinglong Mee
<kinglongmee@gmail.com>
Sat, 11 Mar 2017 13:18:01 +0000
(21:18 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 21 Mar 2017 20:52:16 +0000
(16:52 -0400)
Fixes: 22ad0b6ab4 ("f2fs: add bitmaps for empty or full NAT blocks")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/checkpoint.c
b/fs/f2fs/checkpoint.c
index 0339daf4ca02fac4090fc59783bbfa745bccc9eb..b72a9aad296ca5de3e1e3ab793009b31195f3fe9 100644
(file)
--- a/
fs/f2fs/checkpoint.c
+++ b/
fs/f2fs/checkpoint.c
@@
-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);