Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] btrfs: __TRANS_* flags cleanup
@ 2026-09-24  5:58 Qu Wenruo
  2026-09-24  5:58 ` [PATCH v2 1/3] btrfs: move __TRANS_* and TRANS_* flags out of transaction.h Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Qu Wenruo @ 2026-09-24  5:58 UTC (permalink / raw)
  To: linux-btrfs

This series is inspired by a recent comment from David, mentioning that
"if (type & TRANS_START == TRANS_START)" doesn't look sane.

It turns out that we should not define TRANS_START as multi-bit mask in
the first place.

The first patch is one sent in into the mailing list before, but since
later patches all rely on it, it's included into the series.

The second one is to remove the only flag that caused the exception.

The final one removes __TRANS_* flags completely, so every TRANS_* flag
is just a single bit.

Qu Wenruo (3):
  btrfs: move __TRANS_* and TRANS_* flags out of transaction.h
  btrfs: remove __TRANS_FREEZABLE
  btrfs: remove __TRANS_* flags

 fs/btrfs/backref.c           |  2 +-
 fs/btrfs/tests/btrfs-tests.c |  9 ----
 fs/btrfs/tests/btrfs-tests.h |  2 -
 fs/btrfs/transaction.c       | 95 +++++++++++++++++++++++++-----------
 fs/btrfs/transaction.h       | 29 +++++------
 5 files changed, 78 insertions(+), 59 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-09-28 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-24  5:58 [PATCH v2 0/3] btrfs: __TRANS_* flags cleanup Qu Wenruo
2026-09-24  5:58 ` [PATCH v2 1/3] btrfs: move __TRANS_* and TRANS_* flags out of transaction.h Qu Wenruo
2026-09-28 18:27   ` Filipe Manana
2026-09-28 21:59     ` Qu Wenruo
2026-09-24  5:58 ` [PATCH v2 2/3] btrfs: remove __TRANS_FREEZABLE Qu Wenruo
2026-09-28 18:32   ` Filipe Manana
2026-09-24  5:58 ` [PATCH v2 3/3] btrfs: remove __TRANS_* flags Qu Wenruo
2026-09-28 18:34   ` Filipe Manana

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