Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757751Ab3DQTHY (ORCPT ); Wed, 17 Apr 2013 15:07:24 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:43277 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754719Ab3DQTHX (ORCPT ); Wed, 17 Apr 2013 15:07:23 -0400 Date: Wed, 17 Apr 2013 12:07:04 -0700 From: Johannes Weiner To: "Kirill A. Shutemov" Cc: Andrew Morton , Andrea Arcangeli , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Minchan Kim Subject: Re: [PATCH] thp: fix huge zero page logic for page with pfn == 0 Message-ID: <20130417190511.GA8753@cmpxchg.org> References: <1366211253-14325-1-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366211253-14325-1-git-send-email-kirill.shutemov@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 20 On Wed, Apr 17, 2013 at 06:07:33PM +0300, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > Current implementation of huge zero page uses pfn value 0 to indicate > that the page hasn't allocated yet. It assumes that buddy page allocator > can't return page with pfn == 0. > > Let's rework the code to store 'struct page *' of huge zero page, not > its pfn. This way we can avoid the weak assumption. > > Signed-off-by: Kirill A. Shutemov > Reported-by: Minchan Kim > Acked-by: Minchan Kim Acked-by: Johannes Weiner -- 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/