btrfs: store a block_device in struct btrfs_ordered_extent
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Jul 2021 07:53:59 +0000 (09:53 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 22 Jul 2021 13:50:15 +0000 (15:50 +0200)
commitc7c3a6dcb1efd52949acc1e640be9aad1206a13a
tree1675d80febf2d3baff01d6182f9074eda926f558
parent8949b9a114019b03fbd0d03d65b8647cba4feef3
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>
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/zoned.c