zram: use atomic64_xxx() to replace zram_stat64_xxx()
authorJiang Liu <liuj97@gmail.com>
Thu, 6 Jun 2013 16:07:31 +0000 (00:07 +0800)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:53 +0000 (07:27 +0200)
commit9460df6a6ad7aac8ee3ec1a78130e9a4ca6e000e
tree4d6dd5c35843b2362f123ca56db6c046f5fff5f3
parentc58121171a041a3eb0ca10a5558774502ed3b322
zram: use atomic64_xxx() to replace zram_stat64_xxx()

Use atomic64_xxx() to replace open-coded zram_stat64_xxx().
Some architectures have native support of atomic64 operations,
so we can get rid of the spin_lock() in zram_stat64_xxx().
On the other hand, for platforms use generic version of atomic64
implement, it may cause an extra save/restore of the interrupt
flag.  So it's a tradeoff.

Change-Id: Ie2582688a71f89b457b006c9d2f3cda1d24c93ec
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c
drivers/staging/zram/zram_drv.h
drivers/staging/zram/zram_sysfs.c