aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-08-29 09:11:44 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-08-29 09:11:44 -0400
commit95e0528919cb0c7635b37496e0ad1c41e4c0dd7c (patch)
tree6fbbd2e7db819430a88ad32f9869fe09d1fc6fca /fs/btrfs/ctree.h
parente9fe395e47bef9b948657b788c65cbfbd2433cc4 (diff)
Btrfs: Use mount -o subvol to select the subvol directory instead of dev:
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index ffeee546a0d7..cd75c906048f 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1064,6 +1064,12 @@ static inline int btrfs_set_root_name(struct btrfs_root *root,
1064 ((type *)(btrfs_leaf_data(leaf) + \ 1064 ((type *)(btrfs_leaf_data(leaf) + \
1065 btrfs_item_offset((leaf)->items + (slot)))) 1065 btrfs_item_offset((leaf)->items + (slot))))
1066 1066
1067/* mount option defines and helpers */
1068#define BTRFS_MOUNT_SUBVOL 0x000001
1069#define btrfs_clear_opt(o, opt) o &= ~BTRFS_MOUNT_##opt
1070#define btrfs_set_opt(o, opt) o |= BTRFS_MOUNT_##opt
1071#define btrfs_test_opt(sb, opt) (BTRFS_SB(sb)->s_mount_opt & \
1072 BTRFS_MOUNT_##opt)
1067/* extent-tree.c */ 1073/* extent-tree.c */
1068int btrfs_extent_post_op(struct btrfs_trans_handle *trans, 1074int btrfs_extent_post_op(struct btrfs_trans_handle *trans,
1069 struct btrfs_root *root); 1075 struct btrfs_root *root);