projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a48220
)
resize.f2fs: correct the max segno in migrate_main
author
Junling Zheng
<zhengjunling@huawei.com>
Mon, 28 Nov 2016 06:37:03 +0000
(14:37 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 29 Nov 2016 05:26:15 +0000
(21:26 -0800)
Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/resize.c
patch
|
blob
|
history
diff --git
a/fsck/resize.c
b/fsck/resize.c
index
46aa30e
..
ba7bb88
100644
(file)
--- 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;