btrfs-progs: convert: Add missing return for HOLE mode when checking convert image

In check_convert_image(), for normal HOLE case, if the file extents are
smaller than image size, we set ret to -EINVAL and print error message.

But forget to return.

This patch adds the missing return to fix it.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Qu Wenruo 2017-03-21 09:00:55 +08:00 committed by David Sterba
parent 11b8ec4aac
commit 52bbb015e5
1 changed files with 1 additions and 0 deletions

View File

@ -1559,6 +1559,7 @@ next:
ret = -EINVAL;
error("inode %llu has some file extents not checked",
ino);
return ret;
}
}