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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:14 +0000 (11:47 +0900)
commit5fc88555751dad8f58216e5e589f184436be26a9
tree50ebe58c8e264e541939cba1cb01276a1e158559
parent35621628dc57a1a10c1668751a21512b5989715c
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