* [PATCH] resize.f2fs: correct the max segno in migrate_main
@ 2016-11-28 6:37 Junling Zheng
0 siblings, 0 replies; only message in thread
From: Junling Zheng @ 2016-11-28 6:37 UTC (permalink / raw)
To: linux-f2fs-devel, jaegeuk, yuchao0
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
---
fsck/resize.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fsck/resize.c b/fsck/resize.c
index 46aa30e..ba7bb88 100644
--- a/fsck/resize.c
+++ b/fsck/resize.c
@@ -143,7 +143,7 @@ static void migrate_main(struct f2fs_sb_info *sbi,
ASSERT(raw != NULL);
- for (i = TOTAL_SEGS(sbi); i >= 0; i--) {
+ for (i = TOTAL_SEGS(sbi) - 1; i >= 0; i--) {
se = get_seg_entry(sbi, i);
if (!se->valid_blocks)
continue;
--
2.7.4
------------------------------------------------------------------------------
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-28 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28 6:37 [PATCH] resize.f2fs: correct the max segno in migrate_main Junling Zheng
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).