]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb31ddc547607aa261b10140fa5e6760cc8125dca
tree1675d80febf2d3baff01d6182f9074eda926f558
parent80c9481412b4534974e6699fd25fea040d650f6b
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