Skip to content

Transaction abort macro optimizations

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- add patch with the verification
- in second patch reuse local variable for btrfs_abort_should_print_stack()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: validate negative error number passed to btrfs_abort_transaction()fs/btrfs/transaction.h+24 -00 replies
2/2btrfs: simplify how first hit is passed to __btrfs_abort_transaction()fs/btrfs/transaction.c fs/btrfs/transaction.h+22 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Transaction abort macro optimizations

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(-)
Signature · 1 line
2.53.0