Commit 9bdaf2cc authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Linus Torvalds

mm/debug: print the inode number in dump_page

The inode number helps correlate this page with debug messages elsewhere
in the kernel.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
Acked-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: William Kucharski <william.kucharski@oracle.com>
Link: http://lkml.kernel.org/r/20200709202117.7216-6-willy@infradead.orgSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ad38265
...@@ -143,7 +143,7 @@ void __dump_page(struct page *page, const char *reason) ...@@ -143,7 +143,7 @@ void __dump_page(struct page *page, const char *reason)
} }
if (!dentry_first) { if (!dentry_first) {
pr_warn("aops:%ps\n", a_ops); pr_warn("aops:%ps ino:%lx\n", a_ops, host->i_ino);
goto out_mapping; goto out_mapping;
} }
...@@ -157,8 +157,8 @@ void __dump_page(struct page *page, const char *reason) ...@@ -157,8 +157,8 @@ void __dump_page(struct page *page, const char *reason)
* crash, but it's unlikely that we reach here with a * crash, but it's unlikely that we reach here with a
* corrupted struct page * corrupted struct page
*/ */
pr_warn("aops:%ps dentry name:\"%pd\"\n", a_ops, pr_warn("aops:%ps ino:%lx dentry name:\"%pd\"\n",
&dentry); a_ops, host->i_ino, &dentry);
} }
} }
out_mapping: out_mapping:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment