From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH v2 0/2] Transaction abort macro optimizations
Date: Thu, 7 May 2026 19:59:30 +0200 [thread overview]
Message-ID: <cover.1778176579.git.dsterba@suse.com> (raw)
Optimize size of the macro btrfs_abort_transaction() by encoding the
'first hit' logic into the error code. Additionally also verify that the
error code is negative.
v2:
- add patch with the verification
- in second patch reuse local variable for btrfs_abort_should_print_stack()
David Sterba (2):
btrfs: validate negative error number passed to
btrfs_abort_transaction()
btrfs: simplify how first hit is passed to __btrfs_abort_transaction()
fs/btrfs/transaction.c | 13 ++++++++++++-
fs/btrfs/transaction.h | 41 ++++++++++++++++++++++++++++++++++-------
2 files changed, 46 insertions(+), 8 deletions(-)
--
2.53.0
next reply other threads:[~2026-05-07 17:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 17:59 David Sterba [this message]
2026-05-07 17:59 ` [PATCH v2 1/2] btrfs: validate negative error number passed to btrfs_abort_transaction() David Sterba
2026-05-07 17:59 ` [PATCH v2 2/2] btrfs: simplify how first hit is passed to __btrfs_abort_transaction() David Sterba
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=cover.1778176579.git.dsterba@suse.com \
--to=dsterba@suse.com \
--cc=linux-btrfs@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