]> www.infradead.org Git - nvme.git/commit
btrfs: remove raid-stripe-tree encoding field from stripe_extent
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 May 2024 16:01:43 +0000 (18:01 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:28 +0000 (15:33 +0200)
commit2422547e99f99f952d1a37f26b63289f749d5fcd
tree7f67f3749a19ee368255a3f431cc45f63a847de9
parente2c1887329086148625fef5205719112ceb4a829
btrfs: remove raid-stripe-tree encoding field from stripe_extent

Remove the encoding field from 'struct btrfs_stripe_extent'. It was
originally intended to encode the RAID type as well as if we're a data
or a parity stripe.

But the RAID type can be inferred form the block-group and the data vs.
parity differentiation can be done easier with adding a new key type
for parity stripes in the RAID stripe tree.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/accessors.h
fs/btrfs/print-tree.c
fs/btrfs/raid-stripe-tree.c
fs/btrfs/raid-stripe-tree.h
fs/btrfs/tree-checker.c
include/uapi/linux/btrfs_tree.h