Skip to content

Enumerated bits in enum

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: add helper for bit enumerationfs/btrfs/misc.h+8 -00 replies
2/6btrfs: convert BTRFS_ILOCK-* defines to enum bitfs/btrfs/ctree.h+6 -30 replies
3/6btrfs: convert extent_io page op defines to enum bitsfs/btrfs/extent_io.h+10 -70 replies
4/6btrfs: convert EXTENT_* bits to enumsfs/btrfs/extent-io-tree.h+38 -330 replies
5/6btrfs: convert QGROUP_* defines to enum bitsfs/btrfs/qgroup.h+6 -30 replies
6/6btrfs: convert __TRANS_* defines to enum bitsfs/btrfs/transaction.h+10 -80 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Enumerated bits in enum

With some macro magic it's possible to let enum autoincrement define all bits without manually specifying the value. How it's done is described in the first patch, the rest are example conversions.

David Sterba (6):
btrfs: add helper for bit enumeration
btrfs: convert BTRFS_ILOCK-* defines to enum bit
btrfs: convert extent_io page op defines to enum bits
btrfs: convert EXTENT_* bits to enums
btrfs: convert QGROUP_* defines to enum bits
btrfs: convert __TRANS_* defines to enum bits

 fs/btrfs/ctree.h          |  9 +++--
 fs/btrfs/extent-io-tree.h | 71 +++++++++++++++++++++------------------
 fs/btrfs/extent_io.h      | 17 ++++++----
 fs/btrfs/misc.h           |  8 +++++
 fs/btrfs/qgroup.h         |  9 +++--
 fs/btrfs/transaction.h    | 18 +++++-----
 6 files changed, 78 insertions(+), 54 deletions(-)
Signature · 1 line
2.37.3