commit | 42e99bd975fdd24d2bf1a24ebb8b0b42bab8ba65 | [log] [tgz] |
---|---|---|
author | Jiang Liu <liuj97@gmail.com> | Fri Jun 07 00:07:30 2013 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jun 06 12:12:21 2013 -0700 |
tree | bc12355f68764cc05c09d3aa9823ad9dc58e1dcc | |
parent | 0f0e3ba346c8d8d2cb409b157df79805931a1c2c [diff] |
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>