From: akpm@linux-foundation.org Subject: + mm-zswapc-get-swapper-address_space-by-using-macro.patch added to -mm tree Date: Tue, 16 Jul 2013 15:22:21 -0700 Message-ID: <51e5c79d.JkOQLXoTqbcQtwSk%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:37596 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933387Ab3GPWWW (ORCPT ); Tue, 16 Jul 2013 18:22:22 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, sjenning@linux.vnet.ibm.com, liwanp@linux.vnet.ibm.com, bob.liu@oracle.com, sunghan.suh@samsung.com Subject: + mm-zswapc-get-swapper-address_space-by-using-macro.patch added to -mm tree To: sunghan.suh@samsung.com,bob.liu@oracle.com,liwanp@linux.vnet.ibm.com,sjenning@linux.vnet.ibm.com From: akpm@linux-foundation.org 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 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 Reviewed-by: Bob Liu Reviewed-by: Wanpeng Li Acked-by: Seth Jennings Signed-off-by: Andrew Morton --- 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@samsung.com are mm-zswapc-get-swapper-address_space-by-using-macro.patch