projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'efi-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming...
[cascardo/linux.git]
/
mm
/
debug.c
diff --git
a/mm/debug.c
b/mm/debug.c
index
8865bfb
..
74c7cae
100644
(file)
--- a/
mm/debug.c
+++ b/
mm/debug.c
@@
-42,9
+42,11
@@
const struct trace_print_flags vmaflag_names[] = {
void __dump_page(struct page *page, const char *reason)
{
void __dump_page(struct page *page, const char *reason)
{
+ int mapcount = PageSlab(page) ? 0 : page_mapcount(page);
+
pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
pr_emerg("page:%p count:%d mapcount:%d mapping:%p index:%#lx",
- page, page_ref_count(page),
page_mapcount(page)
,
- page->mapping, page
->index
);
+ page, page_ref_count(page),
mapcount
,
+ page->mapping, page
_to_pgoff(page)
);
if (PageCompound(page))
pr_cont(" compound_mapcount: %d", compound_mapcount(page));
pr_cont("\n");
if (PageCompound(page))
pr_cont(" compound_mapcount: %d", compound_mapcount(page));
pr_cont("\n");