diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-17 15:40:34 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-17 15:40:34 -0400 |
commit | 8d1d13c786b6edca8c8fa3d4f4c8763948f43502 (patch) | |
tree | d2596d654885997e91b51c1745fdd5d16fe1407c /ctree.h | |
parent | 23218726a232be24b4c8e2913e0037f3e5353dca (diff) |
rework csum and extent item ordering
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -40,14 +40,14 @@ struct btrfs_trans_handle; */ struct btrfs_disk_key { __le64 objectid; - __le64 offset; __le32 flags; + __le64 offset; } __attribute__ ((__packed__)); struct btrfs_key { u64 objectid; - u64 offset; u32 flags; + u64 offset; } __attribute__ ((__packed__)); /* @@ -223,7 +223,6 @@ struct btrfs_file_extent_item { } __attribute__ ((__packed__)); struct btrfs_csum_item { - __le64 extent_offset; u8 csum[BTRFS_CSUM_SIZE]; } __attribute__ ((__packed__)); @@ -912,17 +911,6 @@ static inline void btrfs_set_file_extent_num_blocks(struct e->num_blocks = cpu_to_le64(val); } -static inline u64 btrfs_csum_extent_offset(struct btrfs_csum_item *c) -{ - return le64_to_cpu(c->extent_offset); -} - -static inline void btrfs_set_csum_extent_offset(struct btrfs_csum_item *c, - u64 val) -{ - c->extent_offset = cpu_to_le64(val); -} - static inline u16 btrfs_device_pathlen(struct btrfs_device_item *d) { return le16_to_cpu(d->pathlen); |