mm/zswap.c: get swapper address_space by using macro
authorSunghan Suh <sunghan.suh@samsung.com>
Wed, 11 Sep 2013 21:20:22 +0000 (14:20 -0700)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:28:08 +0000 (07:28 +0200)
commit330d2fd31222d5931e179c22adbb5042c2c0460f
tree571da30b50475ca62b3da4248f8ad05748c121ed
parent7efd8a7aa9c889b8b08f8b08807a8341a965b63c
mm/zswap.c: get swapper address_space by using macro

There is a proper macro to get the corresponding swapper address space
from a swap entry.  Instead of directly accessing "swapper_spaces" array,
use the "swap_address_space" macro.

Change-Id: I145f9a3fad914ff83853cd80c60af61f40eab1cf
Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zswap.c