diff options
author | Christoph Hellwig <hch@lst.de> | 2022-08-06 10:03:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:27:59 +0200 |
commit | 928ff3beb8940f2a23d489d56b3cb12cf209d6db (patch) | |
tree | 35560ccecfe351dc4b142ee0975e399d3e4b6fcd /fs/btrfs/super.c | |
parent | 03793cbbc80fe616498f8141f853575b2d140222 (diff) | |
download | lwn-928ff3beb8940f2a23d489d56b3cb12cf209d6db.tar.gz lwn-928ff3beb8940f2a23d489d56b3cb12cf209d6db.zip |
btrfs: stop allocation a btrfs_io_context for simple I/O
The I/O context structure is only used to pass the btrfs_device to
the end I/O handler for I/Os that go to a single device.
Stop allocating the I/O context for these cases by passing the optional
btrfs_io_stripe argument to __btrfs_map_block to query the mapping
information and then using a fast path submission and I/O completion
handler. As the old btrfs_io_context based I/O submission path is
only used for mirrored writes, rename the functions to make that
clear and stop setting the btrfs_bio device and mirror_num field
that is only used for reads.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Tested-by: Nikolay Borisov <nborisov@suse.com>
Tested-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions