* + mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch added to -mm tree
@ 2016-09-27 21:59 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-09-27 21:59 UTC (permalink / raw)
To: kirill.shutemov, vbabka, mm-commits
The patch titled
Subject: mm: clarify why we avoid page_mapcount() for slab pages in dump_page()
has been added to the -mm tree. Its filename is
mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: mm: clarify why we avoid page_mapcount() for slab pages in dump_page()
Let's add comment on why we skip page_mapcount() for sl[aou]b pages.
Link: http://lkml.kernel.org/r/20160922105532.GB24593@node
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/debug.c | 5 +++++
1 file changed, 5 insertions(+)
diff -puN mm/debug.c~mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page mm/debug.c
--- a/mm/debug.c~mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page
+++ a/mm/debug.c
@@ -42,6 +42,11 @@ const struct trace_print_flags vmaflag_n
void __dump_page(struct page *page, const char *reason)
{
+ /*
+ * Avoid VM_BUG_ON() in page_mapcount().
+ * page->_mapcount space in struct page is used by sl[aou]b pages to
+ * encode own info.
+ */
int mapcount = PageSlab(page) ? 0 : page_mapcount(page);
pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
_
Patches currently in -mm which might be from kirill.shutemov@linux.intel.com are
mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-27 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-27 21:59 + mm-clarify-why-we-avoid-page_mapcount-for-slab-pages-in-dump_page.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.