The inode number helps correlate this page with debug messages elsewhere in the kernel. Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> --- mm/debug.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mm/debug.c b/mm/debug.c index 44d843b3b07c..5c58d4509dc9 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -134,14 +134,16 @@ void __dump_page(struct page *page, const char *reason) } if (copy_from_kernel_nofault(&dentry_first, - &host->i_dentry.first, sizeof(struct hlist_node *))) { + &host->i_dentry.first, + sizeof(struct hlist_node *))) { pr_warn("mapping->a_ops:%ps with invalid mapping->host inode address %px\n", a_ops, host); goto out_mapping; } if (!dentry_first) { - pr_warn("mapping->a_ops:%ps\n", a_ops); + pr_warn("mapping->a_ops:%ps ino %lx\n", a_ops, + host->i_ino); goto out_mapping; } @@ -156,8 +158,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("mapping->aops:%ps dentry name:\"%pd\"\n", - a_ops, &dentry); + pr_warn("mapping->aops:%ps ino %lx dentry name:\"%pd\"\n", + a_ops, host->i_ino, &dentry); } } out_mapping: -- 2.27.0