]> 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)
commit48ea957dd6b1e339e5ca32de100b21dbfeef5c45
tree7ed612b0384651de59be62867c2784f423f46531
parent5d18de96990835113e852ea0fbb0fe54834155cc
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