Skip to content

Commit 9bdaf2c

Browse files
Matthew Wilcox (Oracle)torvalds
authored andcommitted
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: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Acked-by: Mike 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.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9ad3826 commit 9bdaf2c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎mm/debug.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void __dump_page(struct page *page, const char *reason)
143143
}
144144

145145
if (!dentry_first) {
146-
pr_warn("aops:%ps\n", a_ops);
146+
pr_warn("aops:%ps ino:%lx\n", a_ops, host->i_ino);
147147
goto out_mapping;
148148
}
149149

@@ -157,8 +157,8 @@ void __dump_page(struct page *page, const char *reason)
157157
* crash, but it's unlikely that we reach here with a
158158
* corrupted struct page
159159
*/
160-
pr_warn("aops:%ps dentry name:\"%pd\"\n", a_ops,
161-
&dentry);
160+
pr_warn("aops:%ps ino:%lx dentry name:\"%pd\"\n",
161+
a_ops, host->i_ino, &dentry);
162162
}
163163
}
164164
out_mapping:

0 commit comments

Comments
 (0)