btrfs-progs: make OWNER_REF_KEY type value smallest among inline refs

Companion patch to progs for the same change in the kernel. Inline refs
are expected to have non-decreasing type value but owner ref violated
this and got away with it via special parsing. Fix the inconsistency
while it is still experimental.

Link: https://lore.kernel.org/linux-btrfs/20231103134547.GA3548732@perftesting/T/#mca2c0e21ecb7a0da616dd09980b9f008c3c00f63
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Boris Burkov 2023-11-03 11:38:57 -07:00 committed by David Sterba
parent a361f5bf42
commit d7c6baf82f
1 changed files with 3 additions and 3 deletions

View File

@ -220,6 +220,9 @@
*/
#define BTRFS_METADATA_ITEM_KEY 169
/* Extent owner, used by squota. */
#define BTRFS_EXTENT_OWNER_REF_KEY 172
#define BTRFS_TREE_BLOCK_REF_KEY 176
#define BTRFS_EXTENT_DATA_REF_KEY 178
@ -230,9 +233,6 @@
#define BTRFS_SHARED_DATA_REF_KEY 184
/* Extent owner, used by squota. */
#define BTRFS_EXTENT_OWNER_REF_KEY 188
/*
* block groups give us hints into the extent allocation trees. Which
* blocks are free etc etc