aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-04 21:22:22 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-04 21:22:22 -0400
commitbae45de03c4d54a9893dedf8a015beb2608b896a (patch)
tree14e8a63492b1ff09fa1851bb3964638331303b99 /fs/btrfs/ctree.h
parentb1a4d96509a78ad234d94e0b914b289c60d2969d (diff)
Btrfs: add dir inode index
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 41cc013ef08d..87c56222a620 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -282,41 +282,42 @@ struct btrfs_root {
282 * for every name in a directory. 282 * for every name in a directory.
283 */ 283 */
284#define BTRFS_DIR_ITEM_KEY 2 284#define BTRFS_DIR_ITEM_KEY 2
285#define BTRFS_DIR_INDEX_KEY 3
285/* 286/*
286 * inline data is file data that fits in the btree. 287 * inline data is file data that fits in the btree.
287 */ 288 */
288#define BTRFS_INLINE_DATA_KEY 3 289#define BTRFS_INLINE_DATA_KEY 4
289/* 290/*
290 * extent data is for data that can't fit in the btree. It points to 291 * extent data is for data that can't fit in the btree. It points to
291 * a (hopefully) huge chunk of disk 292 * a (hopefully) huge chunk of disk
292 */ 293 */
293#define BTRFS_EXTENT_DATA_KEY 4 294#define BTRFS_EXTENT_DATA_KEY 5
294/* 295/*
295 * csum items have the checksums for data in the extents 296 * csum items have the checksums for data in the extents
296 */ 297 */
297#define BTRFS_CSUM_ITEM_KEY 5 298#define BTRFS_CSUM_ITEM_KEY 6
298 299
299/* 300/*
300 * root items point to tree roots. There are typically in the root 301 * root items point to tree roots. There are typically in the root
301 * tree used by the super block to find all the other trees 302 * tree used by the super block to find all the other trees
302 */ 303 */
303#define BTRFS_ROOT_ITEM_KEY 6 304#define BTRFS_ROOT_ITEM_KEY 7
304/* 305/*
305 * extent items are in the extent map tree. These record which blocks 306 * extent items are in the extent map tree. These record which blocks
306 * are used, and how many references there are to each block 307 * are used, and how many references there are to each block
307 */ 308 */
308#define BTRFS_EXTENT_ITEM_KEY 7 309#define BTRFS_EXTENT_ITEM_KEY 8
309 310
310/* 311/*
311 * the inode map records which inode numbers are in use and where 312 * the inode map records which inode numbers are in use and where
312 * they actually live on disk 313 * they actually live on disk
313 */ 314 */
314#define BTRFS_INODE_MAP_ITEM_KEY 8 315#define BTRFS_INODE_MAP_ITEM_KEY 9
315/* 316/*
316 * string items are for debugging. They just store a short string of 317 * string items are for debugging. They just store a short string of
317 * data in the FS 318 * data in the FS
318 */ 319 */
319#define BTRFS_STRING_ITEM_KEY 9 320#define BTRFS_STRING_ITEM_KEY 10
320 321
321static inline u64 btrfs_inode_generation(struct btrfs_inode_item *i) 322static inline u64 btrfs_inode_generation(struct btrfs_inode_item *i)
322{ 323{