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:
6ab16ed
)
defrag.f2fs: return error for no space case
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 3 Nov 2016 00:58:31 +0000
(17:58 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 3 Nov 2016 01:01:55 +0000
(18:01 -0700)
This returns error instead of assertion for resize.f2fs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/defrag.c
patch
|
blob
|
history
diff --git
a/fsck/defrag.c
b/fsck/defrag.c
index
079e7a7
..
bea0293
100644
(file)
--- a/
fsck/defrag.c
+++ b/
fsck/defrag.c
@@
-78,8
+78,8
@@
int f2fs_defragment(struct f2fs_sb_info *sbi, u64 from, u64 len, u64 to, int lef
continue;
if (find_next_free_block(sbi, &target, left, se->type)) {
-
ASSERT_MSG(
"Not enough space to migrate blocks");
-
break
;
+
MSG(0,
"Not enough space to migrate blocks");
+
return -1
;
}
if (migrate_block(sbi, idx, target)) {