diff options
author | David Sterba <dsterba@suse.com> | 2021-07-27 14:49:32 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-16 17:17:31 +0200 |
commit | 7f6ca7f21de235ad79173445fc4d58a4afff41f6 (patch) | |
tree | dddc0551f500713f79a60e7914c473e9126a5300 /fs/btrfs/extent_io.h | |
parent | 2a5232a8cef299a28536b4bb32eb5f75d0002293 (diff) | |
download | lwn-7f6ca7f21de235ad79173445fc4d58a4afff41f6.tar.gz lwn-7f6ca7f21de235ad79173445fc4d58a4afff41f6.zip |
btrfs: open code extent_set_compress_type helpers
The helpers extent_set_compress_type and extent_compress_type have
become trivial after previous cleanups and can be removed.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index ba793cb7a3a2..fdbfe801dbe2 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -140,17 +140,6 @@ static inline void extent_changeset_free(struct extent_changeset *changeset) kfree(changeset); } -static inline void extent_set_compress_type(unsigned long *bio_flags, - int compress_type) -{ - *bio_flags = compress_type; -} - -static inline int extent_compress_type(unsigned long bio_flags) -{ - return bio_flags; -} - struct extent_map_tree; typedef struct extent_map *(get_extent_t)(struct btrfs_inode *inode, |