From: Nitin Gupta Date: Thu, 28 Jan 2010 15:43:37 +0000 (+0530) Subject: Staging: ramzswap: Use lock for 64-bit stats X-Git-Tag: v2.6.34-rc1~10^2~1^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a90772886d5d6812f9b2775d3caa0dc002754e0;p=pandora-kernel.git Staging: ramzswap: Use lock for 64-bit stats 64-bit stats corruption was observed when ramzswap was used on SMP systems. To prevent this, use separate spinlock to protect these stats. Also, replace stat_*() with rzs_stat*() to avoid possible conflict with core kernel code. Eventually, these will be converted to per-cpu counters if this driver finds use on large scale systems and this locking is found to affect scalability. Signed-off-by: Nitin Gupta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed