aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2023-03-07 16:39:41 +0000
committerDavid Sterba <[email protected]>2023-04-17 16:01:17 +0000
commitb7d463a1d1252c2cd5e9f13c008eb49b8a5f75af (patch)
treee70fd9e09b6fc6d045a6d67712c525a4ff1edeab /fs/btrfs/compression.h
parentbtrfs: pass a btrfs_bio to btrfs_submit_compressed_read (diff)
downloadkernel-b7d463a1d1252c2cd5e9f13c008eb49b8a5f75af.tar.gz
kernel-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 <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: David Sterba <[email protected]>
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;
};