Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1af05549 authored by Jiang Liu's avatar Jiang Liu Committed by Daniel Rosenberg
Browse files

zram: optimize memory operations with clear_page()/copy_page()



(cherry pick from commit 42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65)

Some architectures provides architecture-specific, optimized version of
clear_page()/copy_page(), which may have better performance than
memset()/memcpy(). So use clear_page()/copy_page() to optimize zram
performance if possible.

Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 24810447
Change-Id: I436471882853aa683474d93785a5bb89ba85953c
parent 921561fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment