]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39bc20a39b702fda38dfaacfa3eb3458366dfe67
tree7ed612b0384651de59be62867c2784f423f46531
parent3f332d950acc431d0b01c023621bb05c15d9d3df
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