btrfs: optimize simple reads in btrfsic_map_block
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 04:17:35 +0000 (06:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:33 +0000 (13:59 +0200)
commit78a213a05df3510200331bfcc232bf0278c6ed50
tree31c96e33f90cc8d9b812616b73b6dfe4bfc9fcb3
parent3965a4c793d3b031119ff455c4773441584aee30
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>
fs/btrfs/check-integrity.c