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.c | |
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.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index ecb15732d67e..6c40eed217d6 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2562,7 +2562,7 @@ static struct io_failure_record *btrfs_get_io_failure_record(struct inode *inode logical = em->block_start + logical; if (test_bit(EXTENT_FLAG_COMPRESSED, &em->flags)) { logical = em->block_start; - extent_set_compress_type(&failrec->bio_flags, em->compress_type); + failrec->bio_flags = em->compress_type; } btrfs_debug(fs_info, @@ -3681,10 +3681,8 @@ static int btrfs_do_readpage(struct page *page, struct extent_map **em_cached, BUG_ON(extent_map_end(em) <= cur); BUG_ON(end < cur); - if (test_bit(EXTENT_FLAG_COMPRESSED, &em->flags)) { - extent_set_compress_type(&this_bio_flag, - em->compress_type); - } + if (test_bit(EXTENT_FLAG_COMPRESSED, &em->flags)) + this_bio_flag = em->compress_type; iosize = min(extent_map_end(em) - cur, end - cur + 1); cur_end = min(extent_map_end(em) - 1, end); |