summary refs log tree commit diff
path: root/kernel/sched/cpufreq.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2020-04-30 17:57:55 +0200
committerDavid Sterba <dsterba@suse.com>2020-05-25 11:25:34 +0200
commitba8a9a0537770df69d9dc38c11312c9b0f840cf2 (patch)
tree5d5f54bb5fa505011ff196dcf27432ddf98de456 /kernel/sched/cpufreq.c
parent84da071f3df5a9c0df0352d1c52b0c36ddb1c53f (diff)
downloadlinux-ba8a9a0537770df69d9dc38c11312c9b0f840cf2.tar.gz
btrfs: optimize split page read in btrfs_get_token_##bits
The fallback path calls helper read_extent_buffer 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. The cached
token address is set to the second page.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'kernel/sched/cpufreq.c')
0 files changed, 0 insertions, 0 deletions