Use the new %pd printk() specifier in general VFS code to replace passing of dentry name or dentry name and name length * 2 with just passing the dentry. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> --- fs/dcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index 4bdb300b16e2..87d38d34fe1c 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2768,9 +2768,9 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) if (IS_ERR(actual)) { if (PTR_ERR(actual) == -ELOOP) pr_warn_ratelimited( - "VFS: Lookup of '%s' in %s %s" + "VFS: Lookup of '%pd' in %s %s" " would have caused loop\n", - dentry->d_name.name, + dentry, inode->i_sb->s_type->name, inode->i_sb->s_id); dput(alias); -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html