aboutsummaryrefslogtreecommitdiffstats
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorSunghan Suh <sunghan.suh@samsung.com>2013-09-11 17:20:22 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 18:57:08 -0400
commit822518dc56810a0de44cff0f85a227268818749c (patch)
treefc774decccb4b9f14356a629aafc7fb3f93d3775 /mm/zswap.c
parente86867720e617774b560dfbc169b7f3d0d490950 (diff)
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. 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/zswap.c')
-rw-r--r--mm/zswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zswap.c b/mm/zswap.c
index deda2b671e12..efed4c8b7f5b 100644
--- a/mm/zswap.c
+++ b/mm/zswap.c
@@ -409,7 +409,7 @@ static int zswap_get_swap_cache_page(swp_entry_t entry,
409 struct page **retpage) 409 struct page **retpage)
410{ 410{
411 struct page *found_page, *new_page = NULL; 411 struct page *found_page, *new_page = NULL;
412 struct address_space *swapper_space = &swapper_spaces[swp_type(entry)]; 412 struct address_space *swapper_space = swap_address_space(entry);
413 int err; 413 int err;
414 414
415 *retpage = NULL; 415 *retpage = NULL;