btrfs: store a pointer to the original btrfs_bio in struct compressed_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:41 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commitb7d463a1d1252c2cd5e9f13c008eb49b8a5f75af
treee70fd9e09b6fc6d045a6d67712c525a4ff1edeab
parent690834e47cf7868a4c13e32ea2332d9fe6590073
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>
fs/btrfs/compression.c
fs/btrfs/compression.h