diff options
author | David Sterba <dsterba@suse.com> | 2019-03-20 13:17:13 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 17:01:44 +0100 |
commit | c4ac75419826c7afc997bbe4da07ad6f963da22f (patch) | |
tree | 0993ba0b9ac4d0915a74494a15c8088d77827329 /fs/btrfs/ctree.h | |
parent | 9a8658e33d8fd45879eebc44178b2a172e76bb47 (diff) | |
download | lwn-c4ac75419826c7afc997bbe4da07ad6f963da22f.tar.gz lwn-c4ac75419826c7afc997bbe4da07ad6f963da22f.zip |
btrfs: open code trivial helper btrfs_header_chunk_tree_uuid
The helper btrfs_header_chunk_tree_uuid follows naming convention of
other struct accessors but does something compeletly different. As the
offsetof calculation is clear in the context of extent buffer operations
we can remove it.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f66c4ea7491d..1cde3f1d8f20 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1973,11 +1973,6 @@ static inline void btrfs_set_header_backref_rev(struct extent_buffer *eb, btrfs_set_header_flags(eb, flags); } -static inline unsigned long btrfs_header_chunk_tree_uuid(const struct extent_buffer *eb) -{ - return offsetof(struct btrfs_header, chunk_tree_uuid); -} - static inline int btrfs_is_leaf(const struct extent_buffer *eb) { return btrfs_header_level(eb) == 0; |