btrfs: simplify handling of bio_ctrl::bio_flags
authorDavid Sterba <dsterba@suse.com>
Tue, 27 Jul 2021 12:47:09 +0000 (14:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:31 +0000 (17:17 +0200)
commit2a5232a8cef299a28536b4bb32eb5f75d0002293
treed6d8fd1bb79255e48cd85e19e8e68e925a8a4fc6
parent572f3dad5221c98d8c8507f2b6373780751b90d9
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>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c