btrfs: simplify ->flush_bio handling
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 06:15:47 +0000 (07:15 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 14:37:57 +0000 (08:37 -0600)
commit6978ffddd5bba44e6b7614d52868cf4954e0529b
tree98e63c4023e97da25fb94f943a0de49e7474a454
parent61285ff72ae59e1603f908b13363e99883d67e09
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/20220308061551.737853-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