btrfs: simplify ->flush_bio handling
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Apr 2022 06:12:24 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:29:41 +0000 (19:29 -0600)
commitf9e69aa9ccd7e51c47b147e45e03987ea0ef9aa3
tree7ed612b0384651de59be62867c2784f423f46531
parentb53f3dcd705e52a07bd0311870dbfb6842e88c91
btrfs: simplify ->flush_bio handling

Use and embedded bios that is initialized when used instead of
bio_kmalloc plus bio_reset.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220406061228.410163-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/btrfs/disk-io.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h