aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-07-22 09:53:59 +0200
committerDavid Sterba <dsterba@suse.com>2021-07-22 15:50:15 +0200
commitc7c3a6dcb1efd52949acc1e640be9aad1206a13a (patch)
tree1675d80febf2d3baff01d6182f9074eda926f558 /fs/btrfs/ordered-data.h
parentbtrfs: fix lock inversion problem when doing qgroup extent tracing (diff)
downloadlinux-dev-c7c3a6dcb1efd52949acc1e640be9aad1206a13a.tar.xz
linux-dev-c7c3a6dcb1efd52949acc1e640be9aad1206a13a.zip
btrfs: store a block_device in struct btrfs_ordered_extent
Store the block device instead of the gendisk in the btrfs_ordered_extent structure instead of acquiring a reference to it later. Note: this is from series removing bdgrab/bdput, btrfs is one of the last users. 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/ordered-data.h')
-rw-r--r--fs/btrfs/ordered-data.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h
index 566472004edd..b2d88aba8420 100644
--- a/fs/btrfs/ordered-data.h
+++ b/fs/btrfs/ordered-data.h
@@ -145,8 +145,7 @@ struct btrfs_ordered_extent {
* command in a workqueue context
*/
u64 physical;
- struct gendisk *disk;
- u8 partno;
+ struct block_device *bdev;
};
/*