* [PATCH] resize.f2fs: clear CP_COMPACT_SUM_FLAG when rebuilding checkpoint
@ 2018-04-08 2:14 Sheng Yong
2018-04-08 6:16 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Sheng Yong @ 2018-04-08 2:14 UTC (permalink / raw)
To: jaegeuk, yuchao0; +Cc: linux-f2fs-devel
Resize rebuilds checkpoint with 6 summary blocks, so if
CP_COMPACT_SUM_FLAG is set in the old checkpoint, clear it.
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
---
fsck/resize.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fsck/resize.c b/fsck/resize.c
index 7643511..019da71 100644
--- a/fsck/resize.c
+++ b/fsck/resize.c
@@ -504,6 +504,8 @@ static void rebuild_checkpoint(struct f2fs_sb_info *sbi,
/* update nat_bits flag */
flags = update_nat_bits_flags(new_sb, cp, get_cp(ckpt_flags));
+ if (flags & CP_COMPACT_SUM_FLAG)
+ flags &= ~CP_COMPACT_SUM_FLAG;
set_cp(ckpt_flags, flags);
memcpy(new_cp, cp, (unsigned char *)cp->sit_nat_version_bitmap -
--
2.14.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] resize.f2fs: clear CP_COMPACT_SUM_FLAG when rebuilding checkpoint
2018-04-08 2:14 [PATCH] resize.f2fs: clear CP_COMPACT_SUM_FLAG when rebuilding checkpoint Sheng Yong
@ 2018-04-08 6:16 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2018-04-08 6:16 UTC (permalink / raw)
To: Sheng Yong, jaegeuk; +Cc: linux-f2fs-devel
On 2018/4/8 10:14, Sheng Yong wrote:
> Resize rebuilds checkpoint with 6 summary blocks, so if
> CP_COMPACT_SUM_FLAG is set in the old checkpoint, clear it.
>
> Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-08 6:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-08 2:14 [PATCH] resize.f2fs: clear CP_COMPACT_SUM_FLAG when rebuilding checkpoint Sheng Yong
2018-04-08 6:16 ` Chao Yu
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).