zram: optimize memory operations with clear_page()/copy_page()
authorJiang Liu <liuj97@gmail.com>
Thu, 6 Jun 2013 16:07:30 +0000 (00:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:12:21 +0000 (12:12 -0700)
commit42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65
treebc12355f68764cc05c09d3aa9823ad9dc58e1dcc
parent0f0e3ba346c8d8d2cb409b157df79805931a1c2c
zram: optimize memory operations with clear_page()/copy_page()

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: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c