public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Miquel Sabaté Solà" <mssola@mssola.com>
To: dsterba@suse.com
Cc: clm@fb.com, linux-btrfs@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Miquel Sabaté Solà" <mssola@mssola.com>
Subject: [PATCH 0/2] btrfs: return early in allocation failures
Date: Fri, 27 Feb 2026 16:17:57 +0100	[thread overview]
Message-ID: <20260227151759.704838-1-mssola@mssola.com> (raw)

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@mssola.com/

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

             reply	other threads:[~2026-02-27 15:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27 15:17 Miquel Sabaté Solà [this message]
2026-02-27 15:17 ` [PATCH 1/2] btrfs: return early if allocations fail on add_block_entry() Miquel Sabaté Solà
2026-02-27 20:49   ` Qu Wenruo
2026-02-27 15:17 ` [PATCH 2/2] btrfs: return early if allocations fail on raid56 Miquel Sabaté Solà
2026-02-27 20:50   ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260227151759.704838-1-mssola@mssola.com \
    --to=mssola@mssola.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox