From: Bob Liu <lliubbo@gmail.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>,
linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>,
David Rientjes <rientjes@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Andrea Arcangeli <aarcange@redhat.com>
Subject: Re: [PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP
Date: Mon, 3 Dec 2012 11:14:38 +0800 [thread overview]
Message-ID: <CAA_GA1ds_=50SrqvxsGrtM9UPg5w=2e5xpi5CrLbKmE4M6X0gw@mail.gmail.com> (raw)
In-Reply-To: <1354287821-5925-2-git-send-email-kirill.shutemov@linux.intel.com>
On Fri, Nov 30, 2012 at 11:03 PM, Kirill A. Shutemov
<kirill.shutemov@linux.intel.com> wrote:
> From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
>
> 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 allocated page in it.
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> ---
> 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 100644
> --- a/mm/huge_memory.c
> +++ b/mm/huge_memory.c
> @@ -1164,6 +1164,7 @@ static int do_huge_pmd_wp_zero_page_fallback(struct mm_struct *mm,
> pmd_populate(mm, pmd, pgtable);
> spin_unlock(&mm->page_table_lock);
> put_huge_zero_page();
> + inc_mm_counter(mm, MM_ANONPAGES);
>
> mmu_notifier_invalidate_range_end(mm, mmun_start, mmun_end);
>
> --
> 1.7.11.7
>
--
Regards,
--Bob
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-12-03 3:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 21:18 kernel BUG at mm/huge_memory.c:212! Jiri Slaby
2012-11-27 23:47 ` David Rientjes
2012-11-29 7:38 ` Bob Liu
2012-11-30 15:03 ` [PATCH 0/2] " Kirill A. Shutemov
2012-11-30 15:03 ` [PATCH 1/2] thp: fix anononymous page accounting in fallback path for COW of HZP Kirill A. Shutemov
2012-12-03 3:14 ` Bob Liu [this message]
2012-12-03 8:15 ` Kirill A. Shutemov
2012-11-30 15:03 ` [PATCH 2/2] thp: avoid race on multiple parallel page faults to the same page Kirill A. Shutemov
2012-12-03 2:29 ` Bob Liu
2012-12-03 13:02 ` [PATCH 0/2] kernel BUG at mm/huge_memory.c:212! Jiri Slaby
2012-12-12 5:36 ` Bob Liu
2012-12-12 10:59 ` Kirill A. Shutemov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA_GA1ds_=50SrqvxsGrtM9UPg5w=2e5xpi5CrLbKmE4M6X0gw@mail.gmail.com' \
--to=lliubbo@gmail.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=jslaby@suse.cz \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox