]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: check-integrity: simplify bio allocation in btrfsic_read_block
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Apr 2022 04:45:19 +0000 (06:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:12 +0000 (17:03 +0200)
commit714a164c39f8314f15f49cafd8539fa57616a1c8
tree53cb5c38f21a0928243f4a4b8b81e121f2ef96e5
parent5f9c0dda0bd0a707bc0c4289dba3e3cea9e2484b
btrfs: check-integrity: simplify bio allocation in btrfsic_read_block

btrfsic_read_block does not need the btrfs_bio structure, so switch to
plain bio_alloc (that also does not fail as it's backed by a bioset).

Reviewed-by: Qu Wenruo <wqu@suse.com>
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/check-integrity.c