summaryrefslogtreecommitdiff
path: root/include/uapi/linux/btrfs_tree.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-11-15 19:16:19 +0300
committerDavid Sterba <dsterba@suse.com>2022-12-05 20:00:58 +0300
commit0c7030038e6106711c5d0b237c980905dd3244ec (patch)
tree1c9b32f7da845300247ef262a48a8ee6c3bce8b8 /include/uapi/linux/btrfs_tree.h
parent8009adf306452e9b43db36f2d02fedfe5eca1b5e (diff)
downloadlinux-0c7030038e6106711c5d0b237c980905dd3244ec.tar.xz
btrfs: add nr_global_roots to the super block definition
We already have this defined in btrfs-progs, add it to the kernel to make it easier to sync these files into btrfs-progs. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux/btrfs_tree.h')
-rw-r--r--include/uapi/linux/btrfs_tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h
index 29895ffa470d..ab38d0f411fa 100644
--- a/include/uapi/linux/btrfs_tree.h
+++ b/include/uapi/linux/btrfs_tree.h
@@ -688,8 +688,9 @@ struct btrfs_super_block {
/* The UUID written into btree blocks */
__u8 metadata_uuid[BTRFS_FSID_SIZE];
+ __u64 nr_global_roots;
+
/* Future expansion */
- __u8 reserved8[8];
__le64 reserved[27];
__u8 sys_chunk_array[BTRFS_SYSTEM_CHUNK_ARRAY_SIZE];
struct btrfs_root_backup super_roots[BTRFS_NUM_BACKUP_ROOTS];