aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-07 22:13:21 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-07 22:13:21 -0400
commitfabb568183de7996257080260d3537fa75b3667e (patch)
tree60d047f6d5b264347e8f51f16ccd6dc07277c23d /fs/btrfs/ctree.h
parentfbdc762b4e1833b5d75cada5aabeadccd8379792 (diff)
Btrfs: d_type optimization
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 1bb62867deda..a1c95c980fdc 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -34,6 +34,16 @@ extern struct kmem_cache *btrfs_path_cachep;
34#define BTRFS_CRC32_SIZE 4 34#define BTRFS_CRC32_SIZE 4
35#define BTRFS_EMPTY_DIR_SIZE 6 35#define BTRFS_EMPTY_DIR_SIZE 6
36 36
37#define BTRFS_FT_UNKNOWN 0
38#define BTRFS_FT_REG_FILE 1
39#define BTRFS_FT_DIR 2
40#define BTRFS_FT_CHRDEV 3
41#define BTRFS_FT_BLKDEV 4
42#define BTRFS_FT_FIFO 5
43#define BTRFS_FT_SOCK 6
44#define BTRFS_FT_SYMLINK 7
45#define BTRFS_FT_MAX 8
46
37/* 47/*
38 * the key defines the order in the tree, and so it also defines (optimal) 48 * the key defines the order in the tree, and so it also defines (optimal)
39 * block layout. objectid corresonds to the inode number. The flags 49 * block layout. objectid corresonds to the inode number. The flags