summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorSunghan Suh <sunghan.suh@samsung.com>2013-09-11 14:20:22 -0700
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:19 +0900
commitf8d1cf01d576955c44566d980b1607f605dc4eab (patch)
tree312268794b213828f7c4a563af3a96ed1fb76810 /mm
parentc81b00e74776b98feb94b984b3ea42a2f3d0f3da (diff)
downloadlinux-3.10-f8d1cf01d576955c44566d980b1607f605dc4eab.tar.gz
linux-3.10-f8d1cf01d576955c44566d980b1607f605dc4eab.tar.bz2
linux-3.10-f8d1cf01d576955c44566d980b1607f605dc4eab.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/zswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c
index deda2b671e1..efed4c8b7f5 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -409,7 +409,7 @@ static int zswap_get_swap_cache_page(swp_entry_t entry,
struct page **retpage)
{
struct page *found_page, *new_page = NULL;
- struct address_space *swapper_space = &swapper_spaces[swp_type(entry)];
+ struct address_space *swapper_space = swap_address_space(entry);
int err;
*retpage = NULL;