@@ -2412,6 +2412,8 @@ BTRFS_SETGET_STACK_FUNCS(root_stransid, struct btrfs_root_item,
stransid, 64);
BTRFS_SETGET_STACK_FUNCS(root_rtransid, struct btrfs_root_item,
rtransid, 64);
+BTRFS_SETGET_STACK_FUNCS(root_global_tree_id, struct btrfs_root_item,
+ global_tree_id, 64);
static inline bool btrfs_root_readonly(const struct btrfs_root *root)
{
@@ -682,7 +682,11 @@ struct btrfs_root_item {
struct btrfs_timespec otime;
struct btrfs_timespec stime;
struct btrfs_timespec rtime;
- __le64 reserved[8]; /* for future */
+
+ /* If we want to use a specific set of global roots for this root. */
+ __le64 global_tree_id;
+
+ __le64 reserved[7]; /* for future */
} __attribute__ ((__packed__));
/*
This is something Dave asked for in case we want to limit a subvolume to a set of global roots. Signed-off-by: Josef Bacik <josef@toxicpanda.com> --- fs/btrfs/ctree.h | 2 ++ include/uapi/linux/btrfs_tree.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-)