linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zswap: get swapper address_space by using macro
@ 2013-07-15  0:53 Sunghan Suh
  0 siblings, 0 replies; only message in thread
From: Sunghan Suh @ 2013-07-15  0:53 UTC (permalink / raw)
  To: linux-mm, sjenning; +Cc: akpm, Sunghan Suh

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>
---
 mm/zswap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/zswap.c b/mm/zswap.c
index deda2b6..efed4c8 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;
-- 
1.8.1.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-15  0:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15  0:53 [PATCH] zswap: get swapper address_space by using macro Sunghan Suh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox