* [PATCH] f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count
[not found] <c73faa3e-07c8-0bc0-f22a-64f912030369@gmail.com>
@ 2017-03-11 13:18 ` Kinglong Mee
0 siblings, 0 replies; only message in thread
From: Kinglong Mee @ 2017-03-11 13:18 UTC (permalink / raw)
To: Jaegeuk Kim, linux-f2fs-devel
Fixes: 22ad0b6ab4 ("f2fs: add bitmaps for empty or full NAT blocks")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
fs/f2fs/checkpoint.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 4db995c..41f6a42 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -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);
--
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-11 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <c73faa3e-07c8-0bc0-f22a-64f912030369@gmail.com>
2017-03-11 13:18 ` [PATCH] f2fs: le32_to_cpu for ckpt->cp_pack_total_block_count Kinglong Mee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).