Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754623AbaFJUrK (ORCPT ); Tue, 10 Jun 2014 16:47:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39723 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754327AbaFJUrG (ORCPT ); Tue, 10 Jun 2014 16:47:06 -0400 Date: Tue, 10 Jun 2014 13:50:54 -0700 From: Greg Kroah-Hartman To: Yijing Wang Cc: Hugh Dickins , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mel Gorman , Rik van Riel , Andrew Morton , Ben Hutchings , Will Deacon Subject: Re: [PATCH 3.4 47/88] mm: add kmap_to_page() Message-ID: <20140610205054.GA32325@kroah.com> References: <20140610002424.500996570@linuxfoundation.org> <20140610002426.089246636@linuxfoundation.org> <5396BC25.7040500@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5396BC25.7040500@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 10, 2014 at 04:04:53PM +0800, Yijing Wang wrote: > >> +struct page *kmap_to_page(void *vaddr) > >> +{ > >> + unsigned long addr = (unsigned long)vaddr; > >> + > >> + if (addr >= PKMAP_ADDR(0) && addr <= PKMAP_ADDR(LAST_PKMAP)) { > >> + int i = (addr - PKMAP_ADDR(0)) >> PAGE_SHIFT; > >> + return pte_page(pkmap_page_table[i]); > >> + } > >> + > >> + return virt_to_page(addr); > >> +} > >> + > >> static void flush_all_zero_pkmaps(void) > >> { > >> int i; > > > > I think this needs the following on top: > > > > commit 498c2280212327858e521e9d21345d4cc2637f54 > > Author: Will Deacon > > Date: Fri Nov 16 14:15:00 2012 -0800 > > > > Thanks Hugh. Hi Greg, please pick up this fix patch, Thanks a lot! Now applied, thanks! greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/