From: Jiang Liu Date: Thu, 6 Jun 2013 16:07:31 +0000 (+0800) Subject: zram: use atomic64_xxx() to replace zram_stat64_xxx() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da5cc7d338f97886ebf35be92995460289379b73;p=pandora-kernel.git 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. Signed-off-by: Jiang Liu Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed