aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2021-07-27 14:47:09 +0200
committerDavid Sterba <dsterba@suse.com>2022-05-16 17:17:31 +0200
commit2a5232a8cef299a28536b4bb32eb5f75d0002293 (patch)
treed6d8fd1bb79255e48cd85e19e8e68e925a8a4fc6 /fs/btrfs/inode.c
parentbtrfs: remove trivial helper update_nr_written (diff)
downloadlinux-dev-2a5232a8cef299a28536b4bb32eb5f75d0002293.tar.xz
linux-dev-2a5232a8cef299a28536b4bb32eb5f75d0002293.zip
btrfs: simplify handling of bio_ctrl::bio_flags
The bio_flags are used only to encode the compression and there are no other EXTENT_BIO_* flags, so the compress type can be stored directly. The struct member name is left unchanged and will be cleaned in later patches. 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/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 6a4ca1a0ddf3..97b5342e66c2 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2602,7 +2602,7 @@ void btrfs_submit_data_bio(struct inode *inode, struct bio *bio,
if (ret)
goto out;
- if (bio_flags & EXTENT_BIO_COMPRESSED) {
+ if (bio_flags != BTRFS_COMPRESS_NONE) {
/*
* btrfs_submit_compressed_read will handle completing
* the bio if there were any errors, so just return