Enumerated bits in enum
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs: add helper for bit enumerationfs/ | +8 | 0 replies | |
| 2/6 | btrfs: convert BTRFS_ILOCK-* defines to enum bitfs/ | +6 | 0 replies | |
| 3/6 | btrfs: convert extent_io page op defines to enum bitsfs/ | +10 | 0 replies | |
| 4/6 | btrfs: convert EXTENT_* bits to enumsfs/ | +38 | 0 replies | |
| 5/6 | btrfs: convert QGROUP_* defines to enum bitsfs/ | +6 | 0 replies | |
| 6/6 | btrfs: convert __TRANS_* defines to enum bitsfs/ | +10 | 0 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.
| Patch | Josef Bacik |
|---|---|
| Series | R-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.
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