aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-12-13 11:13:32 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commitf6dbff55d77dee363c22873481db54d3bada3ea6 (patch)
tree9a669d43101730bd48044e4943ea833fc2320c15 /fs/btrfs/ctree.h
parent6caab489c5866788ae64a72986520b1f0e40c706 (diff)
Btrfs: Reorder extent back refs to differentiate btree blocks from file data
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 035fa1550343..052555ced44d 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -37,11 +37,12 @@ extern struct kmem_cache *btrfs_path_cachep;
37 37
38#define BTRFS_MAGIC "_B2RfS_M" 38#define BTRFS_MAGIC "_B2RfS_M"
39 39
40#define BTRFS_MAX_LEVEL 8
40#define BTRFS_ROOT_TREE_OBJECTID 1ULL 41#define BTRFS_ROOT_TREE_OBJECTID 1ULL
41#define BTRFS_EXTENT_TREE_OBJECTID 2ULL 42#define BTRFS_EXTENT_TREE_OBJECTID 2ULL
42#define BTRFS_FS_TREE_OBJECTID 3ULL 43#define BTRFS_FS_TREE_OBJECTID 3ULL
43#define BTRFS_ROOT_TREE_DIR_OBJECTID 4ULL 44#define BTRFS_ROOT_TREE_DIR_OBJECTID 4ULL
44#define BTRFS_FIRST_FREE_OBJECTID 5ULL 45#define BTRFS_FIRST_FREE_OBJECTID 256ULL
45 46
46/* 47/*
47 * we can actually store much bigger names, but lets not confuse the rest 48 * we can actually store much bigger names, but lets not confuse the rest
@@ -107,7 +108,6 @@ struct btrfs_header {
107 u8 level; 108 u8 level;
108} __attribute__ ((__packed__)); 109} __attribute__ ((__packed__));
109 110
110#define BTRFS_MAX_LEVEL 8
111#define BTRFS_NODEPTRS_PER_BLOCK(r) (((r)->nodesize - \ 111#define BTRFS_NODEPTRS_PER_BLOCK(r) (((r)->nodesize - \
112 sizeof(struct btrfs_header)) / \ 112 sizeof(struct btrfs_header)) / \
113 sizeof(struct btrfs_key_ptr)) 113 sizeof(struct btrfs_key_ptr))