Skip to content

Commit 135b481

Browse files
josefbacikgregkh
authored andcommitted
btrfs: don't BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk_down_proc()
commit a580fb2 upstream. 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Keerthana K <keerthana.kalyanasundaram@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c062bba commit 135b481

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/extent-tree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5170,7 +5170,6 @@ static noinline int walk_down_proc(struct btrfs_trans_handle *trans,
51705170
eb->start, level, 1,
51715171
&wc->refs[level],
51725172
&wc->flags[level]);
5173-
BUG_ON(ret == -ENOMEM);
51745173
if (ret)
51755174
return ret;
51765175
if (unlikely(wc->refs[level] == 0)) {

0 commit comments

Comments
 (0)