diff options
author | David Sterba <dsterba@suse.com> | 2020-04-30 17:57:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-05-25 11:25:34 +0200 |
commit | 84da071f3df5a9c0df0352d1c52b0c36ddb1c53f (patch) | |
tree | 9afe4d666d6c5c7ce55f2b07602f514a38866f9b /fs/btrfs/scrub.c | |
parent | btrfs: drop unnecessary offset_in_page in extent buffer helpers (diff) | |
download | linux-84da071f3df5a9c0df0352d1c52b0c36ddb1c53f.tar.xz linux-84da071f3df5a9c0df0352d1c52b0c36ddb1c53f.zip |
btrfs: optimize split page read in btrfs_get_##bits
The helper read_extent_buffer is called to do read of the data spanning
two extent buffer pages. As the size is known, we can do the read
directly in two steps. This removes one function call and compiler can
optimize memcpy as the sizes are known at compile time.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
0 files changed, 0 insertions, 0 deletions