Re: [PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Johannes Weiner
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

Re: [PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Andrea Arcangeli
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

[PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Kirill A. Shutemov
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

[PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com 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

Re: [PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Andrea Arcangeli
On Wed, Apr 17, 2013 at 06:07:33PM +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com 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

Re: [PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Johannes Weiner
On Wed, Apr 17, 2013 at 06:07:33PM +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com 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