Skip to content

Commit

Permalink
mm/debug: print the inode number in dump_page
Browse files Browse the repository at this point in the history
The inode number helps correlate this page with debug messages elsewhere
in the kernel.

Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Acked-by: Mike Rapoport <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: William Kucharski <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and torvalds committed Aug 7, 2020
1 parent 9ad3826 commit 9bdaf2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void __dump_page(struct page *page, const char *reason)
}

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;
}

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

0 comments on commit 9bdaf2c

Please sign in to comment.