aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2023-03-07 17:39:41 +0100
committerGravatar David Sterba <dsterba@suse.com> 2023-04-17 18:01:17 +0200
commitb7d463a1d1252c2cd5e9f13c008eb49b8a5f75af (patch)
treee70fd9e09b6fc6d045a6d67712c525a4ff1edeab /fs/btrfs/compression.h
parentbtrfs: pass a btrfs_bio to btrfs_submit_compressed_read (diff)
downloadlinux-b7d463a1d1252c2cd5e9f13c008eb49b8a5f75af.tar.gz
linux-b7d463a1d1252c2cd5e9f13c008eb49b8a5f75af.tar.bz2
linux-b7d463a1d1252c2cd5e9f13c008eb49b8a5f75af.zip
btrfs: store a pointer to the original btrfs_bio in struct compressed_bio
The original bio must be a btrfs_bio, so store a pointer to the btrfs_bio for better type checking. Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.h')
-rw-r--r--fs/btrfs/compression.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h
index 692bafa1050e..5d5146e72a86 100644
--- a/fs/btrfs/compression.h
+++ b/fs/btrfs/compression.h
@@ -55,7 +55,7 @@ struct compressed_bio {
union {
/* For reads, this is the bio we are copying the data into */
- struct bio *orig_bio;
+ struct btrfs_bio *orig_bbio;
struct work_struct write_end_work;
};