diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-06 08:12:24 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-18 03:29:41 +0200 |
commit | f9e69aa9ccd7e51c47b147e45e03987ea0ef9aa3 (patch) | |
tree | 7ed612b0384651de59be62867c2784f423f46531 /fs/btrfs/volumes.h | |
parent | block: allow use of per-cpu bio alloc cache by block drivers (diff) | |
download | linux-f9e69aa9ccd7e51c47b147e45e03987ea0ef9aa3.tar.xz linux-f9e69aa9ccd7e51c47b147e45e03987ea0ef9aa3.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/volumes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index bd297f23d19e..628c9af89474 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -121,8 +121,8 @@ struct btrfs_device { /* bytes used on the current transaction */ u64 commit_bytes_used; - /* for sending down flush barriers */ - struct bio *flush_bio; + /* Bio used for flushing device barriers */ + struct bio flush_bio; struct completion flush_wait; /* per-device scrub information */ |