[PATCH 0/2] btrfs: return early in allocation failures

From: Miquel Sabaté Solà

Date: Fri Feb 27 2026 - 10:24:13 EST


Minor cleanups I saw when I was working on [1]. Both commits are related to
a pattern where two pointers were being initialized and checked after that.

[1] https://lore.kernel.org/linux-btrfs/20260223234451.277369-1-mssola@xxxxxxxxxx/

Miquel Sabaté Solà (2):
btrfs: return early if allocations fail on add_block_entry()
btrfs: return early if allocations fail on raid56

fs/btrfs/raid56.c | 29 ++++++++++++++++++-----------
fs/btrfs/ref-verify.c | 10 ++++++----
2 files changed, 24 insertions(+), 15 deletions(-)

--
2.53.0