mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
btrfs: don't BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk_down_proc()
We handle errors here properly, ENOMEM isn't fatal, return the error. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
acb9b4766c
commit
a580fb2c34
|
|
@ -5397,7 +5397,6 @@ static noinline int walk_down_proc(struct btrfs_trans_handle *trans,
|
|||
&wc->refs[level],
|
||||
&wc->flags[level],
|
||||
NULL);
|
||||
BUG_ON(ret == -ENOMEM);
|
||||
if (ret)
|
||||
return ret;
|
||||
BUG_ON(wc->refs[level] == 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user