From d7c6baf82f2da9d8ce1c0ea83c2ae75c041f1888 Mon Sep 17 00:00:00 2001 From: Boris Burkov Date: Fri, 3 Nov 2023 11:38:57 -0700 Subject: [PATCH] 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 Signed-off-by: David Sterba --- kernel-shared/uapi/btrfs_tree.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel-shared/uapi/btrfs_tree.h b/kernel-shared/uapi/btrfs_tree.h index dd759363..e2ac228b 100644 --- a/kernel-shared/uapi/btrfs_tree.h +++ b/kernel-shared/uapi/btrfs_tree.h @@ -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