summaryrefslogtreecommitdiff
path: root/convert
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-03-21 09:00:55 +0800
committerDavid Sterba <dsterba@suse.com>2017-03-31 14:17:48 +0200
commit52bbb015e5a21743478024becb1c3dacea822adb (patch)
tree0d13a8444703acdce7e200a3856dbd1d27a4cdb4 /convert
parent11b8ec4aac0e30215f4990cbc6accd55e0a16553 (diff)
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>
Diffstat (limited to 'convert')
-rw-r--r--convert/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/convert/main.c b/convert/main.c
index 96358c62..c56382e9 100644
--- a/convert/main.c
+++ b/convert/main.c
@@ -1559,6 +1559,7 @@ next:
ret = -EINVAL;
error("inode %llu has some file extents not checked",
ino);
+ return ret;
}
}