btrfs: convert __TRANS_* defines to enum bits
authorDavid Sterba <dsterba@suse.com>
Fri, 9 Sep 2022 15:43:06 +0000 (17:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:40 +0000 (18:00 +0100)
commitcc37ea61920eca87316be1ae255e5e5e7b12f7b6
treedff70cd375111c2b384a16eb52e496777d4ee9a9
parente0a8b9a74767f748881b1e2408ed9afe7a26d9fd
btrfs: convert __TRANS_* defines to enum bits

The base transaction bits can be defined as bits in a contiguous
sequence, although right now there's a hole from bit 1 to 8.

The bits are used for btrfs_trans_handle::type, and there's another set
of TRANS_STATE_* defines that are for btrfs_transaction::state. They are
mutually exclusive though the hole in the sequence looks like was made
for the states.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.h