Subject: + mm-zswapc-get-swapper-address_space-by-using-macro.patch added to -mm tree To: sunghan.suh@xxxxxxxxxxx,bob.liu@xxxxxxxxxx,liwanp@xxxxxxxxxxxxxxxxxx,sjenning@xxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 16 Jul 2013 15:22:21 -0700 The patch titled Subject: mm/zswap.c: get swapper address_space by using macro has been added to the -mm tree. Its filename is mm-zswapc-get-swapper-address_space-by-using-macro.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-zswapc-get-swapper-address_space-by-using-macro.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-zswapc-get-swapper-address_space-by-using-macro.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sunghan Suh <sunghan.suh@xxxxxxxxxxx> Subject: 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@xxxxxxxxxxx> Reviewed-by: Bob Liu <bob.liu@xxxxxxxxxx> Reviewed-by: Wanpeng Li <liwanp@xxxxxxxxxxxxxxxxxx> Acked-by: Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/zswap.c~mm-zswapc-get-swapper-address_space-by-using-macro mm/zswap.c --- a/mm/zswap.c~mm-zswapc-get-swapper-address_space-by-using-macro +++ a/mm/zswap.c @@ -409,7 +409,7 @@ static int zswap_get_swap_cache_page(swp 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; _ Patches currently in -mm which might be from sunghan.suh@xxxxxxxxxxx are mm-zswapc-get-swapper-address_space-by-using-macro.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html