summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-24 12:09:01 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-24 12:09:01 -0400
commit10d06538f1899d48f8702b5237b85b6412b2a5c4 (patch)
treeca0208b959de39291a63221f83f324a07a0f5654 /ctree.h
parent885f275a68f6702fb2f309fa925681419ab45a13 (diff)
get rid of the extent_item type field
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/ctree.h b/ctree.h
index e2ea14ff..7dedae80 100644
--- a/ctree.h
+++ b/ctree.h
@@ -145,9 +145,6 @@ struct btrfs_path {
int slots[BTRFS_MAX_LEVEL];
};
-/* values for the type field in btrfs_extent_item */
-#define BTRFS_EXTENT_TREE 1
-#define BTRFS_EXTENT_FILE 2
/*
* items in the extent btree are used to record the objectid of the
* owner of the block and the number of references
@@ -155,7 +152,6 @@ struct btrfs_path {
struct btrfs_extent_item {
__le32 refs;
__le64 owner;
- u8 type;
} __attribute__ ((__packed__));
struct btrfs_inode_timespec {
@@ -477,16 +473,6 @@ static inline void btrfs_set_extent_owner(struct btrfs_extent_item *ei, u64 val)
ei->owner = cpu_to_le64(val);
}
-static inline u8 btrfs_extent_type(struct btrfs_extent_item *ei)
-{
- return ei->type;
-}
-
-static inline void btrfs_set_extent_type(struct btrfs_extent_item *ei, u8 val)
-{
- ei->type = val;
-}
-
static inline u64 btrfs_node_blockptr(struct btrfs_node *n, int nr)
{
return le64_to_cpu(n->ptrs[nr].blockptr);