]> 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)
commitcc880d480de7943ecdf400eacc6bfa2191c3f381
tree1675d80febf2d3baff01d6182f9074eda926f558
parent70c2d69aaaa4f8da3413930da3ecaf1712180924
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