summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason2007-06-08 04:13:21 +0200
committerDavid Woodhouse2007-06-08 04:13:21 +0200
commitfabb568183de7996257080260d3537fa75b3667e (patch)
tree60d047f6d5b264347e8f51f16ccd6dc07277c23d /fs/btrfs/ctree.h
parentBtrfs: use a separate flag for search_start vs a hint in find_free_extent (diff)
downloadkernel-qcow2-linux-fabb568183de7996257080260d3537fa75b3667e.tar.gz
kernel-qcow2-linux-fabb568183de7996257080260d3537fa75b3667e.tar.xz
kernel-qcow2-linux-fabb568183de7996257080260d3537fa75b3667e.zip
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;
#define BTRFS_CRC32_SIZE 4
#define BTRFS_EMPTY_DIR_SIZE 6
+#define BTRFS_FT_UNKNOWN 0
+#define BTRFS_FT_REG_FILE 1
+#define BTRFS_FT_DIR 2
+#define BTRFS_FT_CHRDEV 3
+#define BTRFS_FT_BLKDEV 4
+#define BTRFS_FT_FIFO 5
+#define BTRFS_FT_SOCK 6
+#define BTRFS_FT_SYMLINK 7
+#define BTRFS_FT_MAX 8
+
/*
* the key defines the order in the tree, and so it also defines (optimal)
* block layout. objectid corresonds to the inode number. The flags