diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 5103709bb2b9..0ba560f0d2a6 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -60,7 +60,6 @@ struct btrfs_header { | |||
60 | u8 fsid[16]; /* FS specific uuid */ | 60 | u8 fsid[16]; /* FS specific uuid */ |
61 | __le64 blocknr; /* which block this node is supposed to live in */ | 61 | __le64 blocknr; /* which block this node is supposed to live in */ |
62 | __le64 generation; | 62 | __le64 generation; |
63 | __le64 parentid; /* objectid of the tree root */ | ||
64 | __le16 nritems; | 63 | __le16 nritems; |
65 | __le16 flags; | 64 | __le16 flags; |
66 | u8 level; | 65 | u8 level; |
@@ -147,7 +146,6 @@ struct btrfs_path { | |||
147 | */ | 146 | */ |
148 | struct btrfs_extent_item { | 147 | struct btrfs_extent_item { |
149 | __le32 refs; | 148 | __le32 refs; |
150 | __le64 owner; | ||
151 | } __attribute__ ((__packed__)); | 149 | } __attribute__ ((__packed__)); |
152 | 150 | ||
153 | struct btrfs_inode_timespec { | 151 | struct btrfs_inode_timespec { |
@@ -443,16 +441,6 @@ static inline void btrfs_set_timespec_nsec(struct btrfs_inode_timespec *ts, | |||
443 | ts->nsec = cpu_to_le32(val); | 441 | ts->nsec = cpu_to_le32(val); |
444 | } | 442 | } |
445 | 443 | ||
446 | static inline u64 btrfs_extent_owner(struct btrfs_extent_item *ei) | ||
447 | { | ||
448 | return le64_to_cpu(ei->owner); | ||
449 | } | ||
450 | |||
451 | static inline void btrfs_set_extent_owner(struct btrfs_extent_item *ei, u64 val) | ||
452 | { | ||
453 | ei->owner = cpu_to_le64(val); | ||
454 | } | ||
455 | |||
456 | static inline u32 btrfs_extent_refs(struct btrfs_extent_item *ei) | 444 | static inline u32 btrfs_extent_refs(struct btrfs_extent_item *ei) |
457 | { | 445 | { |
458 | return le32_to_cpu(ei->refs); | 446 | return le32_to_cpu(ei->refs); |
@@ -652,17 +640,6 @@ static inline void btrfs_set_header_generation(struct btrfs_header *h, | |||
652 | h->generation = cpu_to_le64(val); | 640 | h->generation = cpu_to_le64(val); |
653 | } | 641 | } |
654 | 642 | ||
655 | static inline u64 btrfs_header_parentid(struct btrfs_header *h) | ||
656 | { | ||
657 | return le64_to_cpu(h->parentid); | ||
658 | } | ||
659 | |||
660 | static inline void btrfs_set_header_parentid(struct btrfs_header *h, | ||
661 | u64 parentid) | ||
662 | { | ||
663 | h->parentid = cpu_to_le64(parentid); | ||
664 | } | ||
665 | |||
666 | static inline u16 btrfs_header_nritems(struct btrfs_header *h) | 643 | static inline u16 btrfs_header_nritems(struct btrfs_header *h) |
667 | { | 644 | { |
668 | return le16_to_cpu(h->nritems); | 645 | return le16_to_cpu(h->nritems); |
@@ -919,7 +896,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | |||
919 | struct btrfs_root *root); | 896 | struct btrfs_root *root); |
920 | int btrfs_alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root | 897 | int btrfs_alloc_extent(struct btrfs_trans_handle *trans, struct btrfs_root |
921 | *root, u64 num_blocks, u64 search_start, u64 | 898 | *root, u64 num_blocks, u64 search_start, u64 |
922 | search_end, u64 owner, struct btrfs_key *ins); | 899 | search_end, struct btrfs_key *ins); |
923 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 900 | int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, |
924 | struct buffer_head *buf); | 901 | struct buffer_head *buf); |
925 | int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root | 902 | int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root |