[PATCH 9/9] Use %pd in general VFS code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux