summaryrefslogtreecommitdiff
path: root/fs/btrfs/bio.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-01-21 07:50:14 +0100
committerDavid Sterba <dsterba@suse.com>2023-02-15 19:38:52 +0100
commit295fe46ff19b990c19b84b0d39a88d7e73710b19 (patch)
treee2e10c7275737b9acdb1177e702e188c31a71821 /fs/btrfs/bio.h
parent0d3acb25e70d5f58f99ae9c695326a097b4b56be (diff)
btrfs: remove struct btrfs_bio::is_metadata flag
This flag is unused now, so remove it. Re-expand the mirror_num field to 8 bits, and move it to the I/O completion internal section of the structure. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/bio.h')
-rw-r--r--fs/btrfs/bio.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/btrfs/bio.h b/fs/btrfs/bio.h
index c232148348df..a96bcb3f36f6 100644
--- a/fs/btrfs/bio.h
+++ b/fs/btrfs/bio.h
@@ -30,16 +30,6 @@ typedef void (*btrfs_bio_end_io_t)(struct btrfs_bio *bbio);
* passed to btrfs_submit_bio for mapping to the physical devices.
*/
struct btrfs_bio {
- unsigned int mirror_num:7;
-
- /*
- * Extra indicator for metadata bios.
- * For some btrfs bios they use pages without a mapping, thus
- * we can not rely on page->mapping->host to determine if
- * it's a metadata bio.
- */
- unsigned int is_metadata:1;
-
/* Inode and offset into it that this I/O operates on. */
struct btrfs_inode *inode;
u64 file_offset;
@@ -64,6 +54,7 @@ struct btrfs_bio {
void *private;
/* For internal use in read end I/O handling */
+ unsigned int mirror_num;
struct work_struct end_io_work;
/*