diff mbox series

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

Message ID 868ac4f8b351773d755e6518c6afa525371b1c56.1699036579.git.boris@bur.io (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: make OWNER_REF_KEY type value smallest among inline refs | expand

Commit Message

Boris Burkov Nov. 3, 2023, 6:38 p.m. UTC
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>
---
 kernel-shared/uapi/btrfs_tree.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

David Sterba Nov. 9, 2023, 2:25 p.m. UTC | #1
On Fri, Nov 03, 2023 at 11:38:57AM -0700, Boris Burkov wrote:
> 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>

Added to devel, thanks.
diff mbox series

Patch

diff --git a/kernel-shared/uapi/btrfs_tree.h b/kernel-shared/uapi/btrfs_tree.h
index dd7593634..e2ac228bc 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