Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Transaction abort macro optimizations
@ 2026-05-07 17:59 David Sterba
  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
  0 siblings, 2 replies; 3+ messages in thread
From: David Sterba @ 2026-05-07 17:59 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-07 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 17:59 [PATCH v2 0/2] Transaction abort macro optimizations David Sterba
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox