Skip to content

Commit

Permalink
btrfs: don't BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk…
Browse files Browse the repository at this point in the history
…_down_proc()

[ Upstream commit a580fb2 ]

We handle errors here properly, ENOMEM isn't fatal, return the error.

Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
josefbacik authored and gregkh committed Sep 12, 2024
1 parent ab6a217 commit 704c359
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -5339,7 +5339,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);
Expand Down

0 comments on commit 704c359

Please sign in to comment.