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:
baaa076
)
fsck.f2fs: fix to check all the types of current offsets
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 8 Feb 2018 01:36:46 +0000
(17:36 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 7 May 2018 21:49:38 +0000
(14:49 -0700)
We can change the next block offsets sometimes, so we have to check it's
free or not all the time. This fixes that SSR type makes a hole for it.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c
patch
|
blob
|
history
diff --git
a/fsck/fsck.c
b/fsck/fsck.c
index
a984666
..
7e3afb5
100644
(file)
--- a/
fsck/fsck.c
+++ b/
fsck/fsck.c
@@
-2021,7
+2021,7
@@
int check_curseg_offset(struct f2fs_sb_info *sbi)
return -EINVAL;
}
if (curseg->alloc_type == SSR)
-
return 0
;
+
continue
;
nblocks = sbi->blocks_per_seg;
for (j = curseg->next_blkoff + 1; j < nblocks; j++) {