Re: [PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP

2012-12-03 Thread Kirill A. Shutemov
On Mon, Dec 03, 2012 at 11:14:38AM +0800, Bob Liu wrote: > On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov > wrote: > > From: "Kirill A. Shutemov" > > > > Don't forget to account newly allocated page in fallback path for > > copy-on-write of huge zero page. > > > > What about fallback path

Re: [PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP

2012-12-02 Thread Bob Liu
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > Don't forget to account newly allocated page in fallback path for > copy-on-write of huge zero page. > What about fallback path in do_huge_pmd_wp_page_fallback()? I think we should also account newly all

[PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP

2012-11-30 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Don't forget to account newly allocated page in fallback path for copy-on-write of huge zero page. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 57f0024..9d6f521 10