diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-31 06:17:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-06-19 13:59:33 +0200 |
commit | 78a213a05df3510200331bfcc232bf0278c6ed50 (patch) | |
tree | 31c96e33f90cc8d9b812616b73b6dfe4bfc9fcb3 /fs/btrfs/volumes.h | |
parent | 3965a4c793d3b031119ff455c4773441584aee30 (diff) |
btrfs: optimize simple reads in btrfsic_map_block
Pass a smap into __btrfs_map_block so that the usual case of a read that
doesn't require parity raid recovery doesn't need an extra memory
allocation for the btrfs_io_context.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions