diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-05-07 14:12:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-14 19:54:17 +0100 |
commit | 44a2c518ab221c0cadcb8c45ca86f83a52dd4da6 (patch) | |
tree | 5c563146b68a0d5e54555a2d836dce4dca9d8683 /fs/btrfs | |
parent | 005873743f1b2aa6bd9da58e91f1d7fc7da9edf8 (diff) | |
download | linux-44a2c518ab221c0cadcb8c45ca86f83a52dd4da6.tar.gz linux-44a2c518ab221c0cadcb8c45ca86f83a52dd4da6.tar.bz2 linux-44a2c518ab221c0cadcb8c45ca86f83a52dd4da6.zip |
btrfs: don't BUG_ON on ENOMEM from btrfs_lookup_extent_info() in walk_down_proc()
commit a580fb2c3479d993556e1c31b237c9e5be4944a3 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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 2ac060dc6500..50bc553cc73a 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -5213,7 +5213,6 @@ static noinline int walk_down_proc(struct btrfs_trans_handle *trans, eb->start, level, 1, &wc->refs[level], &wc->flags[level]); - BUG_ON(ret == -ENOMEM); if (ret) return ret; if (unlikely(wc->refs[level] == 0)) { |