mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 15:12:47 +00:00
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 <dsterba@suse.com>
This commit is contained in:
parent
1fc20730db
commit
73de02b1c5
@ -284,7 +284,7 @@ out:
|
|||||||
if (!cache) {
|
if (!cache) {
|
||||||
printk("Unable to find block group for %llu\n",
|
printk("Unable to find block group for %llu\n",
|
||||||
(unsigned long long)search_start);
|
(unsigned long long)search_start);
|
||||||
WARN_ON(1);
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
return -ENOSPC;
|
return -ENOSPC;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user