mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-27 19:53:34 +08:00
defrag.f2fs: return error for no space case
This returns error instead of assertion for resize.f2fs. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
6ab16edfcf
commit
2f2ee92b34
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user