path: root/extent-tree.c
diff options
authorDavid Sterba <>2017-08-29 18:19:03 +0200
committerDavid Sterba <>2017-09-08 16:15:05 +0200
commit73de02b1c527ea157ded647b596929cdeed326ba (patch)
treeb62f5defad77a2db7c223a5b91aa1a57076e4ef9 /extent-tree.c
parent1fc20730db28f522c8c807386a7cace2f23e9da9 (diff)
btrfs-progs: handle failed search in find_search_start better
The warning can pop up frequently on a fuzzed image, the message seems to be enough. Add a more fitting error code too. Signed-off-by: David Sterba <>
Diffstat (limited to 'extent-tree.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/extent-tree.c b/extent-tree.c
index 9c70908a..eed56886 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -284,7 +284,7 @@ out:
if (!cache) {
printk("Unable to find block group for %llu\n",
(unsigned long long)search_start);
- WARN_ON(1);
+ return -ENOENT;
return -ENOSPC;