aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-03-24 15:02:07 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commite085def2c4cc2d7c0c316376b4b66b86b10e3a4b (patch)
treeb5aa2e89ae7eed7430c68e89427314702a754eae /fs/btrfs/ctree.h
parenta9218f6b00ada101c9772ee9c44af04fa5125d2a (diff)
Btrfs: Make the FS tree the last objectid in the tree of tree roots
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index a877105f5c47..285fb7e46106 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -47,24 +47,23 @@ extern struct kmem_cache *btrfs_path_cachep;
47/* stores information about which extents are in use, and reference counts */ 47/* stores information about which extents are in use, and reference counts */
48#define BTRFS_EXTENT_TREE_OBJECTID 2ULL 48#define BTRFS_EXTENT_TREE_OBJECTID 2ULL
49 49
50/* one per subvolume, storing files and directories */
51#define BTRFS_FS_TREE_OBJECTID 3ULL
52
53/* directory objectid inside the root tree */
54#define BTRFS_ROOT_TREE_DIR_OBJECTID 4ULL
55
56
57/* 50/*
58 * chunk tree stores translations from logical -> physical block numbering 51 * chunk tree stores translations from logical -> physical block numbering
59 * the super block points to the chunk tree 52 * the super block points to the chunk tree
60 */ 53 */
61#define BTRFS_CHUNK_TREE_OBJECTID 5ULL 54#define BTRFS_CHUNK_TREE_OBJECTID 3ULL
62 55
63/* 56/*
64 * stores information about which areas of a given device are in use. 57 * stores information about which areas of a given device are in use.
65 * one per device. The tree of tree roots points to the device tree 58 * one per device. The tree of tree roots points to the device tree
66 */ 59 */
67#define BTRFS_DEV_TREE_OBJECTID 6ULL 60#define BTRFS_DEV_TREE_OBJECTID 4ULL
61
62/* one per subvolume, storing files and directories */
63#define BTRFS_FS_TREE_OBJECTID 5ULL
64
65/* directory objectid inside the root tree */
66#define BTRFS_ROOT_TREE_DIR_OBJECTID 6ULL
68 67
69/* 68/*
70 * All files have objectids higher than this. 69 * All files have objectids higher than this.