aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/vfs_inode_dotl.c4
-rw-r--r--fs/affs/inode.c4
-rw-r--r--fs/affs/namei.c40
-rw-r--r--fs/afs/dir.c71
-rw-r--r--fs/afs/inode.c4
-rw-r--r--fs/afs/mntpt.c22
-rw-r--r--fs/afs/write.c4
-rw-r--r--fs/autofs4/expire.c30
-rw-r--r--fs/autofs4/root.c23
-rw-r--r--fs/befs/linuxvfs.c16
-rw-r--r--fs/binfmt_aout.c8
-rw-r--r--fs/cachefiles/namei.c21
-rw-r--r--fs/cachefiles/xattr.c15
-rw-r--r--fs/ceph/debugfs.c14
-rw-r--r--fs/ceph/dir.c42
-rw-r--r--fs/ceph/file.c4
-rw-r--r--fs/ceph/inode.c14
-rw-r--r--fs/configfs/dir.c2
-rw-r--r--fs/fuse/file.c2
-rw-r--r--fs/jfs/namei.c18
-rw-r--r--fs/nfs/dir.c2
-rw-r--r--fs/nfsd/nfs4xdr.c2
-rw-r--r--fs/ntfs/namei.c4
-rw-r--r--fs/ocfs2/dcache.c18
-rw-r--r--fs/ocfs2/dlmfs/dlmfs.c4
-rw-r--r--fs/ocfs2/dlmglue.c3
-rw-r--r--fs/reiserfs/xattr.c6
27 files changed, 168 insertions, 229 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 02b64f4e576a..6054c16b8fae 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -826,8 +826,8 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, umode_t omode,
826 struct dentry *dir_dentry; 826 struct dentry *dir_dentry;
827 struct posix_acl *dacl = NULL, *pacl = NULL; 827 struct posix_acl *dacl = NULL, *pacl = NULL;
828 828
829 p9_debug(P9_DEBUG_VFS, " %lu,%s mode: %hx MAJOR: %u MINOR: %u\n", 829 p9_debug(P9_DEBUG_VFS, " %lu,%pd mode: %hx MAJOR: %u MINOR: %u\n",
830 dir->i_ino, dentry->d_name.name, omode, 830 dir->i_ino, dentry, omode,
831 MAJOR(rdev), MINOR(rdev)); 831 MAJOR(rdev), MINOR(rdev));
832 832
833 if (!new_valid_dev(rdev)) 833 if (!new_valid_dev(rdev))
diff --git a/fs/affs/inode.c b/fs/affs/inode.c
index e217c511459b..d0609a282e1d 100644
--- a/fs/affs/inode.c
+++ b/fs/affs/inode.c
@@ -348,9 +348,9 @@ affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s3
348 u32 block = 0; 348 u32 block = 0;
349 int retval; 349 int retval;
350 350
351 pr_debug("%s(dir=%u, inode=%u, \"%*s\", type=%d)\n", 351 pr_debug("%s(dir=%u, inode=%u, \"%pd\", type=%d)\n",
352 __func__, (u32)dir->i_ino, 352 __func__, (u32)dir->i_ino,
353 (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type); 353 (u32)inode->i_ino, dentry, type);
354 354
355 retval = -EIO; 355 retval = -EIO;
356 bh = affs_bread(sb, inode->i_ino); 356 bh = affs_bread(sb, inode->i_ino);
diff --git a/fs/affs/namei.c b/fs/affs/namei.c
index 035bd31556fc..bbc38530e924 100644
--- a/fs/affs/namei.c
+++ b/fs/affs/namei.c
@@ -190,8 +190,7 @@ affs_find_entry(struct inode *dir, struct dentry *dentry)
190 toupper_t toupper = affs_get_toupper(sb); 190 toupper_t toupper = affs_get_toupper(sb);
191 u32 key; 191 u32 key;
192 192
193 pr_debug("%s(\"%.*s\")\n", 193 pr_debug("%s(\"%pd\")\n", __func__, dentry);
194 __func__, (int)dentry->d_name.len, dentry->d_name.name);
195 194
196 bh = affs_bread(sb, dir->i_ino); 195 bh = affs_bread(sb, dir->i_ino);
197 if (!bh) 196 if (!bh)
@@ -219,8 +218,7 @@ affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
219 struct buffer_head *bh; 218 struct buffer_head *bh;
220 struct inode *inode = NULL; 219 struct inode *inode = NULL;
221 220
222 pr_debug("%s(\"%.*s\")\n", 221 pr_debug("%s(\"%pd\")\n", __func__, dentry);
223 __func__, (int)dentry->d_name.len, dentry->d_name.name);
224 222
225 affs_lock_dir(dir); 223 affs_lock_dir(dir);
226 bh = affs_find_entry(dir, dentry); 224 bh = affs_find_entry(dir, dentry);
@@ -250,9 +248,9 @@ affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
250int 248int
251affs_unlink(struct inode *dir, struct dentry *dentry) 249affs_unlink(struct inode *dir, struct dentry *dentry)
252{ 250{
253 pr_debug("%s(dir=%d, %lu \"%.*s\")\n", 251 pr_debug("%s(dir=%d, %lu \"%pd\")\n",
254 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino, 252 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino,
255 (int)dentry->d_name.len, dentry->d_name.name); 253 dentry);
256 254
257 return affs_remove_header(dentry); 255 return affs_remove_header(dentry);
258} 256}
@@ -264,9 +262,8 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl)
264 struct inode *inode; 262 struct inode *inode;
265 int error; 263 int error;
266 264
267 pr_debug("%s(%lu,\"%.*s\",0%ho)\n", 265 pr_debug("%s(%lu,\"%pd\",0%ho)\n",
268 __func__, dir->i_ino, (int)dentry->d_name.len, 266 __func__, dir->i_ino, dentry, mode);
269 dentry->d_name.name,mode);
270 267
271 inode = affs_new_inode(dir); 268 inode = affs_new_inode(dir);
272 if (!inode) 269 if (!inode)
@@ -294,9 +291,8 @@ affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
294 struct inode *inode; 291 struct inode *inode;
295 int error; 292 int error;
296 293
297 pr_debug("%s(%lu,\"%.*s\",0%ho)\n", 294 pr_debug("%s(%lu,\"%pd\",0%ho)\n",
298 __func__, dir->i_ino, (int)dentry->d_name.len, 295 __func__, dir->i_ino, dentry, mode);
299 dentry->d_name.name, mode);
300 296
301 inode = affs_new_inode(dir); 297 inode = affs_new_inode(dir);
302 if (!inode) 298 if (!inode)
@@ -321,9 +317,9 @@ affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
321int 317int
322affs_rmdir(struct inode *dir, struct dentry *dentry) 318affs_rmdir(struct inode *dir, struct dentry *dentry)
323{ 319{
324 pr_debug("%s(dir=%u, %lu \"%.*s\")\n", 320 pr_debug("%s(dir=%u, %lu \"%pd\")\n",
325 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino, 321 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino,
326 (int)dentry->d_name.len, dentry->d_name.name); 322 dentry);
327 323
328 return affs_remove_header(dentry); 324 return affs_remove_header(dentry);
329} 325}
@@ -338,9 +334,8 @@ affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
338 int i, maxlen, error; 334 int i, maxlen, error;
339 char c, lc; 335 char c, lc;
340 336
341 pr_debug("%s(%lu,\"%.*s\" -> \"%s\")\n", 337 pr_debug("%s(%lu,\"%pd\" -> \"%s\")\n",
342 __func__, dir->i_ino, (int)dentry->d_name.len, 338 __func__, dir->i_ino, dentry, symname);
343 dentry->d_name.name, symname);
344 339
345 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; 340 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1;
346 inode = affs_new_inode(dir); 341 inode = affs_new_inode(dir);
@@ -409,9 +404,9 @@ affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
409{ 404{
410 struct inode *inode = old_dentry->d_inode; 405 struct inode *inode = old_dentry->d_inode;
411 406
412 pr_debug("%s(%u, %u, \"%.*s\")\n", 407 pr_debug("%s(%u, %u, \"%pd\")\n",
413 __func__, (u32)inode->i_ino, (u32)dir->i_ino, 408 __func__, (u32)inode->i_ino, (u32)dir->i_ino,
414 (int)dentry->d_name.len,dentry->d_name.name); 409 dentry);
415 410
416 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); 411 return affs_add_entry(dir, inode, dentry, ST_LINKFILE);
417} 412}
@@ -424,10 +419,9 @@ affs_rename(struct inode *old_dir, struct dentry *old_dentry,
424 struct buffer_head *bh = NULL; 419 struct buffer_head *bh = NULL;
425 int retval; 420 int retval;
426 421
427 pr_debug("%s(old=%u,\"%*s\" to new=%u,\"%*s\")\n", 422 pr_debug("%s(old=%u,\"%pd\" to new=%u,\"%pd\")\n",
428 __func__, (u32)old_dir->i_ino, (int)old_dentry->d_name.len, 423 __func__, (u32)old_dir->i_ino, old_dentry,
429 old_dentry->d_name.name, (u32)new_dir->i_ino, 424 (u32)new_dir->i_ino, new_dentry);
430 (int)new_dentry->d_name.len, new_dentry->d_name.name);
431 425
432 retval = affs_check_name(new_dentry->d_name.name, 426 retval = affs_check_name(new_dentry->d_name.name,
433 new_dentry->d_name.len, 427 new_dentry->d_name.len,
diff --git a/fs/afs/dir.c b/fs/afs/dir.c
index d452f3de5434..4ec35e9130e1 100644
--- a/fs/afs/dir.c
+++ b/fs/afs/dir.c
@@ -434,7 +434,7 @@ static int afs_do_lookup(struct inode *dir, struct dentry *dentry,
434 }; 434 };
435 int ret; 435 int ret;
436 436
437 _enter("{%lu},%p{%s},", dir->i_ino, dentry, dentry->d_name.name); 437 _enter("{%lu},%p{%pd},", dir->i_ino, dentry, dentry);
438 438
439 /* search the directory */ 439 /* search the directory */
440 ret = afs_dir_iterate(dir, &cookie.ctx, key); 440 ret = afs_dir_iterate(dir, &cookie.ctx, key);
@@ -466,8 +466,8 @@ static struct inode *afs_try_auto_mntpt(
466 struct afs_vnode *vnode = AFS_FS_I(dir); 466 struct afs_vnode *vnode = AFS_FS_I(dir);
467 struct inode *inode; 467 struct inode *inode;
468 468
469 _enter("%d, %p{%s}, {%x:%u}, %p", 469 _enter("%d, %p{%pd}, {%x:%u}, %p",
470 ret, dentry, devname, vnode->fid.vid, vnode->fid.vnode, key); 470 ret, dentry, dentry, vnode->fid.vid, vnode->fid.vnode, key);
471 471
472 if (ret != -ENOENT || 472 if (ret != -ENOENT ||
473 !test_bit(AFS_VNODE_AUTOCELL, &vnode->flags)) 473 !test_bit(AFS_VNODE_AUTOCELL, &vnode->flags))
@@ -502,8 +502,8 @@ static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry,
502 502
503 vnode = AFS_FS_I(dir); 503 vnode = AFS_FS_I(dir);
504 504
505 _enter("{%x:%u},%p{%s},", 505 _enter("{%x:%u},%p{%pd},",
506 vnode->fid.vid, vnode->fid.vnode, dentry, dentry->d_name.name); 506 vnode->fid.vid, vnode->fid.vnode, dentry, dentry);
507 507
508 ASSERTCMP(dentry->d_inode, ==, NULL); 508 ASSERTCMP(dentry->d_inode, ==, NULL);
509 509
@@ -589,11 +589,11 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
589 vnode = AFS_FS_I(dentry->d_inode); 589 vnode = AFS_FS_I(dentry->d_inode);
590 590
591 if (dentry->d_inode) 591 if (dentry->d_inode)
592 _enter("{v={%x:%u} n=%s fl=%lx},", 592 _enter("{v={%x:%u} n=%pd fl=%lx},",
593 vnode->fid.vid, vnode->fid.vnode, dentry->d_name.name, 593 vnode->fid.vid, vnode->fid.vnode, dentry,
594 vnode->flags); 594 vnode->flags);
595 else 595 else
596 _enter("{neg n=%s}", dentry->d_name.name); 596 _enter("{neg n=%pd}", dentry);
597 597
598 key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell); 598 key = afs_request_key(AFS_FS_S(dentry->d_sb)->volume->cell);
599 if (IS_ERR(key)) 599 if (IS_ERR(key))
@@ -608,7 +608,7 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
608 afs_validate(dir, key); 608 afs_validate(dir, key);
609 609
610 if (test_bit(AFS_VNODE_DELETED, &dir->flags)) { 610 if (test_bit(AFS_VNODE_DELETED, &dir->flags)) {
611 _debug("%s: parent dir deleted", dentry->d_name.name); 611 _debug("%pd: parent dir deleted", dentry);
612 goto out_bad; 612 goto out_bad;
613 } 613 }
614 614
@@ -626,16 +626,16 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
626 if (!dentry->d_inode) 626 if (!dentry->d_inode)
627 goto out_bad; 627 goto out_bad;
628 if (is_bad_inode(dentry->d_inode)) { 628 if (is_bad_inode(dentry->d_inode)) {
629 printk("kAFS: afs_d_revalidate: %s/%s has bad inode\n", 629 printk("kAFS: afs_d_revalidate: %pd2 has bad inode\n",
630 parent->d_name.name, dentry->d_name.name); 630 dentry);
631 goto out_bad; 631 goto out_bad;
632 } 632 }
633 633
634 /* if the vnode ID has changed, then the dirent points to a 634 /* if the vnode ID has changed, then the dirent points to a
635 * different file */ 635 * different file */
636 if (fid.vnode != vnode->fid.vnode) { 636 if (fid.vnode != vnode->fid.vnode) {
637 _debug("%s: dirent changed [%u != %u]", 637 _debug("%pd: dirent changed [%u != %u]",
638 dentry->d_name.name, fid.vnode, 638 dentry, fid.vnode,
639 vnode->fid.vnode); 639 vnode->fid.vnode);
640 goto not_found; 640 goto not_found;
641 } 641 }
@@ -644,8 +644,8 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
644 * been deleted and replaced, and the original vnode ID has 644 * been deleted and replaced, and the original vnode ID has
645 * been reused */ 645 * been reused */
646 if (fid.unique != vnode->fid.unique) { 646 if (fid.unique != vnode->fid.unique) {
647 _debug("%s: file deleted (uq %u -> %u I:%u)", 647 _debug("%pd: file deleted (uq %u -> %u I:%u)",
648 dentry->d_name.name, fid.unique, 648 dentry, fid.unique,
649 vnode->fid.unique, 649 vnode->fid.unique,
650 dentry->d_inode->i_generation); 650 dentry->d_inode->i_generation);
651 spin_lock(&vnode->lock); 651 spin_lock(&vnode->lock);
@@ -657,14 +657,14 @@ static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
657 657
658 case -ENOENT: 658 case -ENOENT:
659 /* the filename is unknown */ 659 /* the filename is unknown */
660 _debug("%s: dirent not found", dentry->d_name.name); 660 _debug("%pd: dirent not found", dentry);
661 if (dentry->d_inode) 661 if (dentry->d_inode)
662 goto not_found; 662 goto not_found;
663 goto out_valid; 663 goto out_valid;
664 664
665 default: 665 default:
666 _debug("failed to iterate dir %s: %d", 666 _debug("failed to iterate dir %pd: %d",
667 parent->d_name.name, ret); 667 parent, ret);
668 goto out_bad; 668 goto out_bad;
669 } 669 }
670 670
@@ -682,8 +682,7 @@ not_found:
682 spin_unlock(&dentry->d_lock); 682 spin_unlock(&dentry->d_lock);
683 683
684out_bad: 684out_bad:
685 _debug("dropping dentry %s/%s", 685 _debug("dropping dentry %pd2", dentry);
686 parent->d_name.name, dentry->d_name.name);
687 dput(parent); 686 dput(parent);
688 key_put(key); 687 key_put(key);
689 688
@@ -699,7 +698,7 @@ out_bad:
699 */ 698 */
700static int afs_d_delete(const struct dentry *dentry) 699static int afs_d_delete(const struct dentry *dentry)
701{ 700{
702 _enter("%s", dentry->d_name.name); 701 _enter("%pd", dentry);
703 702
704 if (dentry->d_flags & DCACHE_NFSFS_RENAMED) 703 if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
705 goto zap; 704 goto zap;
@@ -722,7 +721,7 @@ zap:
722 */ 721 */
723static void afs_d_release(struct dentry *dentry) 722static void afs_d_release(struct dentry *dentry)
724{ 723{
725 _enter("%s", dentry->d_name.name); 724 _enter("%pd", dentry);
726} 725}
727 726
728/* 727/*
@@ -741,8 +740,8 @@ static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
741 740
742 dvnode = AFS_FS_I(dir); 741 dvnode = AFS_FS_I(dir);
743 742
744 _enter("{%x:%u},{%s},%ho", 743 _enter("{%x:%u},{%pd},%ho",
745 dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); 744 dvnode->fid.vid, dvnode->fid.vnode, dentry, mode);
746 745
747 key = afs_request_key(dvnode->volume->cell); 746 key = afs_request_key(dvnode->volume->cell);
748 if (IS_ERR(key)) { 747 if (IS_ERR(key)) {
@@ -802,8 +801,8 @@ static int afs_rmdir(struct inode *dir, struct dentry *dentry)
802 801
803 dvnode = AFS_FS_I(dir); 802 dvnode = AFS_FS_I(dir);
804 803
805 _enter("{%x:%u},{%s}", 804 _enter("{%x:%u},{%pd}",
806 dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name); 805 dvnode->fid.vid, dvnode->fid.vnode, dentry);
807 806
808 key = afs_request_key(dvnode->volume->cell); 807 key = afs_request_key(dvnode->volume->cell);
809 if (IS_ERR(key)) { 808 if (IS_ERR(key)) {
@@ -844,8 +843,8 @@ static int afs_unlink(struct inode *dir, struct dentry *dentry)
844 843
845 dvnode = AFS_FS_I(dir); 844 dvnode = AFS_FS_I(dir);
846 845
847 _enter("{%x:%u},{%s}", 846 _enter("{%x:%u},{%pd}",
848 dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name); 847 dvnode->fid.vid, dvnode->fid.vnode, dentry);
849 848
850 ret = -ENAMETOOLONG; 849 ret = -ENAMETOOLONG;
851 if (dentry->d_name.len >= AFSNAMEMAX) 850 if (dentry->d_name.len >= AFSNAMEMAX)
@@ -918,8 +917,8 @@ static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
918 917
919 dvnode = AFS_FS_I(dir); 918 dvnode = AFS_FS_I(dir);
920 919
921 _enter("{%x:%u},{%s},%ho,", 920 _enter("{%x:%u},{%pd},%ho,",
922 dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, mode); 921 dvnode->fid.vid, dvnode->fid.vnode, dentry, mode);
923 922
924 key = afs_request_key(dvnode->volume->cell); 923 key = afs_request_key(dvnode->volume->cell);
925 if (IS_ERR(key)) { 924 if (IS_ERR(key)) {
@@ -981,10 +980,10 @@ static int afs_link(struct dentry *from, struct inode *dir,
981 vnode = AFS_FS_I(from->d_inode); 980 vnode = AFS_FS_I(from->d_inode);
982 dvnode = AFS_FS_I(dir); 981 dvnode = AFS_FS_I(dir);
983 982
984 _enter("{%x:%u},{%x:%u},{%s}", 983 _enter("{%x:%u},{%x:%u},{%pd}",
985 vnode->fid.vid, vnode->fid.vnode, 984 vnode->fid.vid, vnode->fid.vnode,
986 dvnode->fid.vid, dvnode->fid.vnode, 985 dvnode->fid.vid, dvnode->fid.vnode,
987 dentry->d_name.name); 986 dentry);
988 987
989 key = afs_request_key(dvnode->volume->cell); 988 key = afs_request_key(dvnode->volume->cell);
990 if (IS_ERR(key)) { 989 if (IS_ERR(key)) {
@@ -1026,8 +1025,8 @@ static int afs_symlink(struct inode *dir, struct dentry *dentry,
1026 1025
1027 dvnode = AFS_FS_I(dir); 1026 dvnode = AFS_FS_I(dir);
1028 1027
1029 _enter("{%x:%u},{%s},%s", 1028 _enter("{%x:%u},{%pd},%s",
1030 dvnode->fid.vid, dvnode->fid.vnode, dentry->d_name.name, 1029 dvnode->fid.vid, dvnode->fid.vnode, dentry,
1031 content); 1030 content);
1032 1031
1033 ret = -EINVAL; 1032 ret = -EINVAL;
@@ -1094,11 +1093,11 @@ static int afs_rename(struct inode *old_dir, struct dentry *old_dentry,
1094 orig_dvnode = AFS_FS_I(old_dir); 1093 orig_dvnode = AFS_FS_I(old_dir);
1095 new_dvnode = AFS_FS_I(new_dir); 1094 new_dvnode = AFS_FS_I(new_dir);
1096 1095
1097 _enter("{%x:%u},{%x:%u},{%x:%u},{%s}", 1096 _enter("{%x:%u},{%x:%u},{%x:%u},{%pd}",
1098 orig_dvnode->fid.vid, orig_dvnode->fid.vnode, 1097 orig_dvnode->fid.vid, orig_dvnode->fid.vnode,
1099 vnode->fid.vid, vnode->fid.vnode, 1098 vnode->fid.vid, vnode->fid.vnode,
1100 new_dvnode->fid.vid, new_dvnode->fid.vnode, 1099 new_dvnode->fid.vid, new_dvnode->fid.vnode,
1101 new_dentry->d_name.name); 1100 new_dentry);
1102 1101
1103 key = afs_request_key(orig_dvnode->volume->cell); 1102 key = afs_request_key(orig_dvnode->volume->cell);
1104 if (IS_ERR(key)) { 1103 if (IS_ERR(key)) {
diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index 294671288449..8a1d38ef0fc2 100644
--- a/fs/afs/inode.c
+++ b/fs/afs/inode.c
@@ -462,8 +462,8 @@ int afs_setattr(struct dentry *dentry, struct iattr *attr)
462 struct key *key; 462 struct key *key;
463 int ret; 463 int ret;
464 464
465 _enter("{%x:%u},{n=%s},%x", 465 _enter("{%x:%u},{n=%pd},%x",
466 vnode->fid.vid, vnode->fid.vnode, dentry->d_name.name, 466 vnode->fid.vid, vnode->fid.vnode, dentry,
467 attr->ia_valid); 467 attr->ia_valid);
468 468
469 if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID | 469 if (!(attr->ia_valid & (ATTR_SIZE | ATTR_MODE | ATTR_UID | ATTR_GID |
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c
index 9682c33d5daf..938c5ab06d5a 100644
--- a/fs/afs/mntpt.c
+++ b/fs/afs/mntpt.c
@@ -106,14 +106,7 @@ static struct dentry *afs_mntpt_lookup(struct inode *dir,
106 struct dentry *dentry, 106 struct dentry *dentry,
107 unsigned int flags) 107 unsigned int flags)
108{ 108{
109 _enter("%p,%p{%p{%s},%s}", 109 _enter("%p,%p{%pd2}", dir, dentry, dentry);
110 dir,
111 dentry,
112 dentry->d_parent,
113 dentry->d_parent ?
114 dentry->d_parent->d_name.name : (const unsigned char *) "",
115 dentry->d_name.name);
116
117 return ERR_PTR(-EREMOTE); 110 return ERR_PTR(-EREMOTE);
118} 111}
119 112
@@ -122,14 +115,7 @@ static struct dentry *afs_mntpt_lookup(struct inode *dir,
122 */ 115 */
123static int afs_mntpt_open(struct inode *inode, struct file *file) 116static int afs_mntpt_open(struct inode *inode, struct file *file)
124{ 117{
125 _enter("%p,%p{%p{%s},%s}", 118 _enter("%p,%p{%pD2}", inode, file, file);
126 inode, file,
127 file->f_path.dentry->d_parent,
128 file->f_path.dentry->d_parent ?
129 file->f_path.dentry->d_parent->d_name.name :
130 (const unsigned char *) "",
131 file->f_path.dentry->d_name.name);
132
133 return -EREMOTE; 119 return -EREMOTE;
134} 120}
135 121
@@ -146,7 +132,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt)
146 bool rwpath = false; 132 bool rwpath = false;
147 int ret; 133 int ret;
148 134
149 _enter("{%s}", mntpt->d_name.name); 135 _enter("{%pd}", mntpt);
150 136
151 BUG_ON(!mntpt->d_inode); 137 BUG_ON(!mntpt->d_inode);
152 138
@@ -242,7 +228,7 @@ struct vfsmount *afs_d_automount(struct path *path)
242{ 228{
243 struct vfsmount *newmnt; 229 struct vfsmount *newmnt;
244 230
245 _enter("{%s}", path->dentry->d_name.name); 231 _enter("{%pd}", path->dentry);
246 232
247 newmnt = afs_mntpt_do_automount(path->dentry); 233 newmnt = afs_mntpt_do_automount(path->dentry);
248 if (IS_ERR(newmnt)) 234 if (IS_ERR(newmnt))
diff --git a/fs/afs/write.c b/fs/afs/write.c
index ab6adfd52516..d148138325c3 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -688,8 +688,8 @@ int afs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
688 struct afs_vnode *vnode = AFS_FS_I(dentry->d_inode); 688 struct afs_vnode *vnode = AFS_FS_I(dentry->d_inode);
689 int ret; 689 int ret;
690 690
691 _enter("{%x:%u},{n=%s},%d", 691 _enter("{%x:%u},{n=%pd},%d",
692 vnode->fid.vid, vnode->fid.vnode, dentry->d_name.name, 692 vnode->fid.vid, vnode->fid.vnode, dentry,
693 datasync); 693 datasync);
694 694
695 ret = filemap_write_and_wait_range(inode->i_mapping, start, end); 695 ret = filemap_write_and_wait_range(inode->i_mapping, start, end);
diff --git a/fs/autofs4/expire.c b/fs/autofs4/expire.c
index dcdec6fd33c6..bfdbaba9c2ba 100644
--- a/fs/autofs4/expire.c
+++ b/fs/autofs4/expire.c
@@ -41,8 +41,7 @@ static int autofs4_mount_busy(struct vfsmount *mnt, struct dentry *dentry)
41 struct path path = {.mnt = mnt, .dentry = dentry}; 41 struct path path = {.mnt = mnt, .dentry = dentry};
42 int status = 1; 42 int status = 1;
43 43
44 DPRINTK("dentry %p %.*s", 44 DPRINTK("dentry %p %pd", dentry, dentry);
45 dentry, (int)dentry->d_name.len, dentry->d_name.name);
46 45
47 path_get(&path); 46 path_get(&path);
48 47
@@ -192,8 +191,7 @@ static int autofs4_direct_busy(struct vfsmount *mnt,
192 unsigned long timeout, 191 unsigned long timeout,
193 int do_now) 192 int do_now)
194{ 193{
195 DPRINTK("top %p %.*s", 194 DPRINTK("top %p %pd", top, top);
196 top, (int) top->d_name.len, top->d_name.name);
197 195
198 /* If it's busy update the expiry counters */ 196 /* If it's busy update the expiry counters */
199 if (!may_umount_tree(mnt)) { 197 if (!may_umount_tree(mnt)) {
@@ -221,8 +219,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt,
221 struct autofs_info *top_ino = autofs4_dentry_ino(top); 219 struct autofs_info *top_ino = autofs4_dentry_ino(top);
222 struct dentry *p; 220 struct dentry *p;
223 221
224 DPRINTK("top %p %.*s", 222 DPRINTK("top %p %pd", top, top);
225 top, (int)top->d_name.len, top->d_name.name);
226 223
227 /* Negative dentry - give up */ 224 /* Negative dentry - give up */
228 if (!simple_positive(top)) 225 if (!simple_positive(top))
@@ -230,8 +227,7 @@ static int autofs4_tree_busy(struct vfsmount *mnt,
230 227
231 p = NULL; 228 p = NULL;
232 while ((p = get_next_positive_dentry(p, top))) { 229 while ((p = get_next_positive_dentry(p, top))) {
233 DPRINTK("dentry %p %.*s", 230 DPRINTK("dentry %p %pd", p, p);
234 p, (int) p->d_name.len, p->d_name.name);
235 231
236 /* 232 /*
237 * Is someone visiting anywhere in the subtree ? 233 * Is someone visiting anywhere in the subtree ?
@@ -277,13 +273,11 @@ static struct dentry *autofs4_check_leaves(struct vfsmount *mnt,
277{ 273{
278 struct dentry *p; 274 struct dentry *p;
279 275
280 DPRINTK("parent %p %.*s", 276 DPRINTK("parent %p %pd", parent, parent);
281 parent, (int)parent->d_name.len, parent->d_name.name);
282 277
283 p = NULL; 278 p = NULL;
284 while ((p = get_next_positive_dentry(p, parent))) { 279 while ((p = get_next_positive_dentry(p, parent))) {
285 DPRINTK("dentry %p %.*s", 280 DPRINTK("dentry %p %pd", p, p);
286 p, (int) p->d_name.len, p->d_name.name);
287 281
288 if (d_mountpoint(p)) { 282 if (d_mountpoint(p)) {
289 /* Can we umount this guy */ 283 /* Can we umount this guy */
@@ -368,8 +362,7 @@ static struct dentry *should_expire(struct dentry *dentry,
368 * offset (autofs-5.0+). 362 * offset (autofs-5.0+).
369 */ 363 */
370 if (d_mountpoint(dentry)) { 364 if (d_mountpoint(dentry)) {
371 DPRINTK("checking mountpoint %p %.*s", 365 DPRINTK("checking mountpoint %p %pd", dentry, dentry);
372 dentry, (int)dentry->d_name.len, dentry->d_name.name);
373 366
374 /* Can we umount this guy */ 367 /* Can we umount this guy */
375 if (autofs4_mount_busy(mnt, dentry)) 368 if (autofs4_mount_busy(mnt, dentry))
@@ -382,8 +375,7 @@ static struct dentry *should_expire(struct dentry *dentry,
382 } 375 }
383 376
384 if (dentry->d_inode && S_ISLNK(dentry->d_inode->i_mode)) { 377 if (dentry->d_inode && S_ISLNK(dentry->d_inode->i_mode)) {
385 DPRINTK("checking symlink %p %.*s", 378 DPRINTK("checking symlink %p %pd", dentry, dentry);
386 dentry, (int)dentry->d_name.len, dentry->d_name.name);
387 /* 379 /*
388 * A symlink can't be "busy" in the usual sense so 380 * A symlink can't be "busy" in the usual sense so
389 * just check last used for expire timeout. 381 * just check last used for expire timeout.
@@ -479,8 +471,7 @@ struct dentry *autofs4_expire_indirect(struct super_block *sb,
479 return NULL; 471 return NULL;
480 472
481found: 473found:
482 DPRINTK("returning %p %.*s", 474 DPRINTK("returning %p %pd", expired, expired);
483 expired, (int)expired->d_name.len, expired->d_name.name);
484 ino->flags |= AUTOFS_INF_EXPIRING; 475 ino->flags |= AUTOFS_INF_EXPIRING;
485 smp_mb(); 476 smp_mb();
486 ino->flags &= ~AUTOFS_INF_NO_RCU; 477 ino->flags &= ~AUTOFS_INF_NO_RCU;
@@ -512,8 +503,7 @@ int autofs4_expire_wait(struct dentry *dentry, int rcu_walk)
512 if (ino->flags & AUTOFS_INF_EXPIRING) { 503 if (ino->flags & AUTOFS_INF_EXPIRING) {
513 spin_unlock(&sbi->fs_lock); 504 spin_unlock(&sbi->fs_lock);
514 505
515 DPRINTK("waiting for expire %p name=%.*s", 506 DPRINTK("waiting for expire %p name=%pd", dentry, dentry);
516 dentry, dentry->d_name.len, dentry->d_name.name);
517 507
518 status = autofs4_wait(sbi, dentry, NFY_NONE); 508 status = autofs4_wait(sbi, dentry, NFY_NONE);
519 wait_for_completion(&ino->expire_complete); 509 wait_for_completion(&ino->expire_complete);
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c
index 0822c9eacc56..dbb5b7212ce1 100644
--- a/fs/autofs4/root.c
+++ b/fs/autofs4/root.c
@@ -108,8 +108,7 @@ static int autofs4_dir_open(struct inode *inode, struct file *file)
108 struct dentry *dentry = file->f_path.dentry; 108 struct dentry *dentry = file->f_path.dentry;
109 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb); 109 struct autofs_sb_info *sbi = autofs4_sbi(dentry->d_sb);
110 110
111 DPRINTK("file=%p dentry=%p %.*s", 111 DPRINTK("file=%p dentry=%p %pD", file, dentry, dentry);
112 file, dentry, dentry->d_name.len, dentry->d_name.name);
113 112
114 if (autofs4_oz_mode(sbi)) 113 if (autofs4_oz_mode(sbi))
115 goto out; 114 goto out;
@@ -279,8 +278,7 @@ static int autofs4_mount_wait(struct dentry *dentry, bool rcu_walk)
279 if (ino->flags & AUTOFS_INF_PENDING) { 278 if (ino->flags & AUTOFS_INF_PENDING) {
280 if (rcu_walk) 279 if (rcu_walk)
281 return -ECHILD; 280 return -ECHILD;
282 DPRINTK("waiting for mount name=%.*s", 281 DPRINTK("waiting for mount name=%pd", dentry);
283 dentry->d_name.len, dentry->d_name.name);
284 status = autofs4_wait(sbi, dentry, NFY_MOUNT); 282 status = autofs4_wait(sbi, dentry, NFY_MOUNT);
285 DPRINTK("mount wait done status=%d", status); 283 DPRINTK("mount wait done status=%d", status);
286 } 284 }
@@ -340,8 +338,7 @@ static struct vfsmount *autofs4_d_automount(struct path *path)
340 struct autofs_info *ino = autofs4_dentry_ino(dentry); 338 struct autofs_info *ino = autofs4_dentry_ino(dentry);
341 int status; 339 int status;
342 340
343 DPRINTK("dentry=%p %.*s", 341 DPRINTK("dentry=%p %pd", dentry, dentry);
344 dentry, dentry->d_name.len, dentry->d_name.name);
345 342
346 /* The daemon never triggers a mount. */ 343 /* The daemon never triggers a mount. */
347 if (autofs4_oz_mode(sbi)) 344 if (autofs4_oz_mode(sbi))
@@ -428,8 +425,7 @@ static int autofs4_d_manage(struct dentry *dentry, bool rcu_walk)
428 struct autofs_info *ino = autofs4_dentry_ino(dentry); 425 struct autofs_info *ino = autofs4_dentry_ino(dentry);
429 int status; 426 int status;
430 427
431 DPRINTK("dentry=%p %.*s", 428 DPRINTK("dentry=%p %pd", dentry, dentry);
432 dentry, dentry->d_name.len, dentry->d_name.name);
433 429
434 /* The daemon never waits. */ 430 /* The daemon never waits. */
435 if (autofs4_oz_mode(sbi)) { 431 if (autofs4_oz_mode(sbi)) {
@@ -504,7 +500,7 @@ static struct dentry *autofs4_lookup(struct inode *dir, struct dentry *dentry, u
504 struct autofs_info *ino; 500 struct autofs_info *ino;
505 struct dentry *active; 501 struct dentry *active;
506 502
507 DPRINTK("name = %.*s", dentry->d_name.len, dentry->d_name.name); 503 DPRINTK("name = %pd", dentry);
508 504
509 /* File name too long to exist */ 505 /* File name too long to exist */
510 if (dentry->d_name.len > NAME_MAX) 506 if (dentry->d_name.len > NAME_MAX)
@@ -558,8 +554,7 @@ static int autofs4_dir_symlink(struct inode *dir,
558 size_t size = strlen(symname); 554 size_t size = strlen(symname);
559 char *cp; 555 char *cp;
560 556
561 DPRINTK("%s <- %.*s", symname, 557 DPRINTK("%s <- %pd", symname, dentry);
562 dentry->d_name.len, dentry->d_name.name);
563 558
564 if (!autofs4_oz_mode(sbi)) 559 if (!autofs4_oz_mode(sbi))
565 return -EACCES; 560 return -EACCES;
@@ -701,8 +696,7 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry)
701 struct autofs_info *ino = autofs4_dentry_ino(dentry); 696 struct autofs_info *ino = autofs4_dentry_ino(dentry);
702 struct autofs_info *p_ino; 697 struct autofs_info *p_ino;
703 698
704 DPRINTK("dentry %p, removing %.*s", 699 DPRINTK("dentry %p, removing %pd", dentry, dentry);
705 dentry, dentry->d_name.len, dentry->d_name.name);
706 700
707 if (!autofs4_oz_mode(sbi)) 701 if (!autofs4_oz_mode(sbi))
708 return -EACCES; 702 return -EACCES;
@@ -744,8 +738,7 @@ static int autofs4_dir_mkdir(struct inode *dir, struct dentry *dentry, umode_t m
744 if (!autofs4_oz_mode(sbi)) 738 if (!autofs4_oz_mode(sbi))
745 return -EACCES; 739 return -EACCES;
746 740
747 DPRINTK("dentry %p, creating %.*s", 741 DPRINTK("dentry %p, creating %pd", dentry, dentry);
748 dentry, dentry->d_name.len, dentry->d_name.name);
749 742
750 BUG_ON(!ino); 743 BUG_ON(!ino);
751 744
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 4cf61ec6b7a8..b94d1cc9cd30 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -172,8 +172,8 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
172 char *utfname; 172 char *utfname;
173 const char *name = dentry->d_name.name; 173 const char *name = dentry->d_name.name;
174 174
175 befs_debug(sb, "---> %s name %s inode %ld", __func__, 175 befs_debug(sb, "---> %s name %pd inode %ld", __func__,
176 dentry->d_name.name, dir->i_ino); 176 dentry, dir->i_ino);
177 177
178 /* Convert to UTF-8 */ 178 /* Convert to UTF-8 */
179 if (BEFS_SB(sb)->nls) { 179 if (BEFS_SB(sb)->nls) {
@@ -191,8 +191,7 @@ befs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
191 } 191 }
192 192
193 if (ret == BEFS_BT_NOT_FOUND) { 193 if (ret == BEFS_BT_NOT_FOUND) {
194 befs_debug(sb, "<--- %s %s not found", __func__, 194 befs_debug(sb, "<--- %s %pd not found", __func__, dentry);
195 dentry->d_name.name);
196 return ERR_PTR(-ENOENT); 195 return ERR_PTR(-ENOENT);
197 196
198 } else if (ret != BEFS_OK || offset == 0) { 197 } else if (ret != BEFS_OK || offset == 0) {
@@ -222,10 +221,9 @@ befs_readdir(struct file *file, struct dir_context *ctx)
222 size_t keysize; 221 size_t keysize;
223 unsigned char d_type; 222 unsigned char d_type;
224 char keybuf[BEFS_NAME_LEN + 1]; 223 char keybuf[BEFS_NAME_LEN + 1];
225 const char *dirname = file->f_path.dentry->d_name.name;
226 224
227 befs_debug(sb, "---> %s name %s, inode %ld, ctx->pos %lld", 225 befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld",
228 __func__, dirname, inode->i_ino, ctx->pos); 226 __func__, file, inode->i_ino, ctx->pos);
229 227
230more: 228more:
231 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, 229 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1,
@@ -233,8 +231,8 @@ more:
233 231
234 if (result == BEFS_ERR) { 232 if (result == BEFS_ERR) {
235 befs_debug(sb, "<--- %s ERROR", __func__); 233 befs_debug(sb, "<--- %s ERROR", __func__);
236 befs_error(sb, "IO error reading %s (inode %lu)", 234 befs_error(sb, "IO error reading %pD (inode %lu)",
237 dirname, inode->i_ino); 235 file, inode->i_ino);
238 return -EIO; 236 return -EIO;
239 237
240 } else if (result == BEFS_BT_END) { 238 } else if (result == BEFS_BT_END) {
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
index 929dec08c348..4c556680fa74 100644
--- a/fs/binfmt_aout.c
+++ b/fs/binfmt_aout.c
@@ -292,8 +292,8 @@ static int load_aout_binary(struct linux_binprm * bprm)
292 if ((fd_offset & ~PAGE_MASK) != 0 && printk_ratelimit()) 292 if ((fd_offset & ~PAGE_MASK) != 0 && printk_ratelimit())
293 { 293 {
294 printk(KERN_WARNING 294 printk(KERN_WARNING
295 "fd_offset is not page aligned. Please convert program: %s\n", 295 "fd_offset is not page aligned. Please convert program: %pD\n",
296 bprm->file->f_path.dentry->d_name.name); 296 bprm->file);
297 } 297 }
298 298
299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { 299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) {
@@ -375,8 +375,8 @@ static int load_aout_library(struct file *file)
375 if (printk_ratelimit()) 375 if (printk_ratelimit())
376 { 376 {
377 printk(KERN_WARNING 377 printk(KERN_WARNING
378 "N_TXTOFF is not page aligned. Please convert library: %s\n", 378 "N_TXTOFF is not page aligned. Please convert library: %pD\n",
379 file->f_path.dentry->d_name.name); 379 file);
380 } 380 }
381 vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); 381 vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss);
382 382
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
index e12f189d539b..7f8e83f9d74e 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -102,8 +102,7 @@ static void cachefiles_mark_object_buried(struct cachefiles_cache *cache,
102 struct cachefiles_object *object; 102 struct cachefiles_object *object;
103 struct rb_node *p; 103 struct rb_node *p;
104 104
105 _enter(",'%*.*s'", 105 _enter(",'%pd'", dentry);
106 dentry->d_name.len, dentry->d_name.len, dentry->d_name.name);
107 106
108 write_lock(&cache->active_lock); 107 write_lock(&cache->active_lock);
109 108
@@ -273,9 +272,7 @@ static int cachefiles_bury_object(struct cachefiles_cache *cache,
273 char nbuffer[8 + 8 + 1]; 272 char nbuffer[8 + 8 + 1];
274 int ret; 273 int ret;
275 274
276 _enter(",'%*.*s','%*.*s'", 275 _enter(",'%pd','%pd'", dir, rep);
277 dir->d_name.len, dir->d_name.len, dir->d_name.name,
278 rep->d_name.len, rep->d_name.len, rep->d_name.name);
279 276
280 _debug("remove %p from %p", rep, dir); 277 _debug("remove %p from %p", rep, dir);
281 278
@@ -597,8 +594,7 @@ lookup_again:
597 /* if we've found that the terminal object exists, then we need to 594 /* if we've found that the terminal object exists, then we need to
598 * check its attributes and delete it if it's out of date */ 595 * check its attributes and delete it if it's out of date */
599 if (!object->new) { 596 if (!object->new) {
600 _debug("validate '%*.*s'", 597 _debug("validate '%pd'", next);
601 next->d_name.len, next->d_name.len, next->d_name.name);
602 598
603 ret = cachefiles_check_object_xattr(object, auxdata); 599 ret = cachefiles_check_object_xattr(object, auxdata);
604 if (ret == -ESTALE) { 600 if (ret == -ESTALE) {
@@ -827,8 +823,8 @@ static struct dentry *cachefiles_check_active(struct cachefiles_cache *cache,
827 unsigned long start; 823 unsigned long start;
828 int ret; 824 int ret;
829 825
830 //_enter(",%*.*s/,%s", 826 //_enter(",%pd/,%s",
831 // dir->d_name.len, dir->d_name.len, dir->d_name.name, filename); 827 // dir, filename);
832 828
833 /* look up the victim */ 829 /* look up the victim */
834 mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); 830 mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
@@ -910,8 +906,7 @@ int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir,
910 struct dentry *victim; 906 struct dentry *victim;
911 int ret; 907 int ret;
912 908
913 _enter(",%*.*s/,%s", 909 _enter(",%pd/,%s", dir, filename);
914 dir->d_name.len, dir->d_name.len, dir->d_name.name, filename);
915 910
916 victim = cachefiles_check_active(cache, dir, filename); 911 victim = cachefiles_check_active(cache, dir, filename);
917 if (IS_ERR(victim)) 912 if (IS_ERR(victim))
@@ -969,8 +964,8 @@ int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir,
969{ 964{
970 struct dentry *victim; 965 struct dentry *victim;
971 966
972 //_enter(",%*.*s/,%s", 967 //_enter(",%pd/,%s",
973 // dir->d_name.len, dir->d_name.len, dir->d_name.name, filename); 968 // dir, filename);
974 969
975 victim = cachefiles_check_active(cache, dir, filename); 970 victim = cachefiles_check_active(cache, dir, filename);
976 if (IS_ERR(victim)) 971 if (IS_ERR(victim))
diff --git a/fs/cachefiles/xattr.c b/fs/cachefiles/xattr.c
index acbc1f094fb1..a8a68745e11d 100644
--- a/fs/cachefiles/xattr.c
+++ b/fs/cachefiles/xattr.c
@@ -51,9 +51,8 @@ int cachefiles_check_object_type(struct cachefiles_object *object)
51 } 51 }
52 52
53 if (ret != -EEXIST) { 53 if (ret != -EEXIST) {
54 pr_err("Can't set xattr on %*.*s [%lu] (err %d)\n", 54 pr_err("Can't set xattr on %pd [%lu] (err %d)\n",
55 dentry->d_name.len, dentry->d_name.len, 55 dentry, dentry->d_inode->i_ino,
56 dentry->d_name.name, dentry->d_inode->i_ino,
57 -ret); 56 -ret);
58 goto error; 57 goto error;
59 } 58 }
@@ -64,9 +63,8 @@ int cachefiles_check_object_type(struct cachefiles_object *object)
64 if (ret == -ERANGE) 63 if (ret == -ERANGE)
65 goto bad_type_length; 64 goto bad_type_length;
66 65
67 pr_err("Can't read xattr on %*.*s [%lu] (err %d)\n", 66 pr_err("Can't read xattr on %pd [%lu] (err %d)\n",
68 dentry->d_name.len, dentry->d_name.len, 67 dentry, dentry->d_inode->i_ino,
69 dentry->d_name.name, dentry->d_inode->i_ino,
70 -ret); 68 -ret);
71 goto error; 69 goto error;
72 } 70 }
@@ -92,9 +90,8 @@ bad_type_length:
92 90
93bad_type: 91bad_type:
94 xtype[2] = 0; 92 xtype[2] = 0;
95 pr_err("Cache object %*.*s [%lu] type %s not %s\n", 93 pr_err("Cache object %pd [%lu] type %s not %s\n",
96 dentry->d_name.len, dentry->d_name.len, 94 dentry, dentry->d_inode->i_ino,
97 dentry->d_name.name, dentry->d_inode->i_ino,
98 xtype, type); 95 xtype, type);
99 ret = -EIO; 96 ret = -EIO;
100 goto error; 97 goto error;
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c
index 5d5a4c8c8496..1b2355109b9f 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -83,10 +83,9 @@ static int mdsc_show(struct seq_file *s, void *p)
83 if (IS_ERR(path)) 83 if (IS_ERR(path))
84 path = NULL; 84 path = NULL;
85 spin_lock(&req->r_dentry->d_lock); 85 spin_lock(&req->r_dentry->d_lock);
86 seq_printf(s, " #%llx/%.*s (%s)", 86 seq_printf(s, " #%llx/%pd (%s)",
87 ceph_ino(req->r_dentry->d_parent->d_inode), 87 ceph_ino(req->r_dentry->d_parent->d_inode),
88 req->r_dentry->d_name.len, 88 req->r_dentry,
89 req->r_dentry->d_name.name,
90 path ? path : ""); 89 path ? path : "");
91 spin_unlock(&req->r_dentry->d_lock); 90 spin_unlock(&req->r_dentry->d_lock);
92 kfree(path); 91 kfree(path);
@@ -103,11 +102,10 @@ static int mdsc_show(struct seq_file *s, void *p)
103 if (IS_ERR(path)) 102 if (IS_ERR(path))
104 path = NULL; 103 path = NULL;
105 spin_lock(&req->r_old_dentry->d_lock); 104 spin_lock(&req->r_old_dentry->d_lock);
106 seq_printf(s, " #%llx/%.*s (%s)", 105 seq_printf(s, " #%llx/%pd (%s)",
107 req->r_old_dentry_dir ? 106 req->r_old_dentry_dir ?
108 ceph_ino(req->r_old_dentry_dir) : 0, 107 ceph_ino(req->r_old_dentry_dir) : 0,
109 req->r_old_dentry->d_name.len, 108 req->r_old_dentry,
110 req->r_old_dentry->d_name.name,
111 path ? path : ""); 109 path ? path : "");
112 spin_unlock(&req->r_old_dentry->d_lock); 110 spin_unlock(&req->r_old_dentry->d_lock);
113 kfree(path); 111 kfree(path);
@@ -150,8 +148,8 @@ static int dentry_lru_show(struct seq_file *s, void *ptr)
150 spin_lock(&mdsc->dentry_lru_lock); 148 spin_lock(&mdsc->dentry_lru_lock);
151 list_for_each_entry(di, &mdsc->dentry_lru, lru) { 149 list_for_each_entry(di, &mdsc->dentry_lru, lru) {
152 struct dentry *dentry = di->dentry; 150 struct dentry *dentry = di->dentry;
153 seq_printf(s, "%p %p\t%.*s\n", 151 seq_printf(s, "%p %p\t%pd\n",
154 di, dentry, dentry->d_name.len, dentry->d_name.name); 152 di, dentry, dentry);
155 } 153 }
156 spin_unlock(&mdsc->dentry_lru_lock); 154 spin_unlock(&mdsc->dentry_lru_lock);
157 155
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 695e7888fef8..766ec35f988e 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -168,8 +168,8 @@ more:
168 ceph_ino(dentry->d_inode) != CEPH_INO_CEPH && 168 ceph_ino(dentry->d_inode) != CEPH_INO_CEPH &&
169 fpos_cmp(ctx->pos, di->offset) <= 0) 169 fpos_cmp(ctx->pos, di->offset) <= 0)
170 break; 170 break;
171 dout(" skipping %p %.*s at %llu (%llu)%s%s\n", dentry, 171 dout(" skipping %p %pd at %llu (%llu)%s%s\n", dentry,
172 dentry->d_name.len, dentry->d_name.name, di->offset, 172 dentry, di->offset,
173 ctx->pos, d_unhashed(dentry) ? " unhashed" : "", 173 ctx->pos, d_unhashed(dentry) ? " unhashed" : "",
174 !dentry->d_inode ? " null" : ""); 174 !dentry->d_inode ? " null" : "");
175 spin_unlock(&dentry->d_lock); 175 spin_unlock(&dentry->d_lock);
@@ -190,8 +190,8 @@ more:
190 goto out; 190 goto out;
191 } 191 }
192 192
193 dout(" %llu (%llu) dentry %p %.*s %p\n", di->offset, ctx->pos, 193 dout(" %llu (%llu) dentry %p %pd %p\n", di->offset, ctx->pos,
194 dentry, dentry->d_name.len, dentry->d_name.name, dentry->d_inode); 194 dentry, dentry, dentry->d_inode);
195 if (!dir_emit(ctx, dentry->d_name.name, 195 if (!dir_emit(ctx, dentry->d_name.name,
196 dentry->d_name.len, 196 dentry->d_name.len,
197 ceph_translate_ino(dentry->d_sb, dentry->d_inode->i_ino), 197 ceph_translate_ino(dentry->d_sb, dentry->d_inode->i_ino),
@@ -538,8 +538,8 @@ int ceph_handle_snapdir(struct ceph_mds_request *req,
538 strcmp(dentry->d_name.name, 538 strcmp(dentry->d_name.name,
539 fsc->mount_options->snapdir_name) == 0) { 539 fsc->mount_options->snapdir_name) == 0) {
540 struct inode *inode = ceph_get_snapdir(parent); 540 struct inode *inode = ceph_get_snapdir(parent);
541 dout("ENOENT on snapdir %p '%.*s', linking to snapdir %p\n", 541 dout("ENOENT on snapdir %p '%pd', linking to snapdir %p\n",
542 dentry, dentry->d_name.len, dentry->d_name.name, inode); 542 dentry, dentry, inode);
543 BUG_ON(!d_unhashed(dentry)); 543 BUG_ON(!d_unhashed(dentry));
544 d_add(dentry, inode); 544 d_add(dentry, inode);
545 err = 0; 545 err = 0;
@@ -603,8 +603,8 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
603 int op; 603 int op;
604 int err; 604 int err;
605 605
606 dout("lookup %p dentry %p '%.*s'\n", 606 dout("lookup %p dentry %p '%pd'\n",
607 dir, dentry, dentry->d_name.len, dentry->d_name.name); 607 dir, dentry, dentry);
608 608
609 if (dentry->d_name.len > NAME_MAX) 609 if (dentry->d_name.len > NAME_MAX)
610 return ERR_PTR(-ENAMETOOLONG); 610 return ERR_PTR(-ENAMETOOLONG);
@@ -774,8 +774,8 @@ static int ceph_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
774 if (ceph_snap(dir) == CEPH_SNAPDIR) { 774 if (ceph_snap(dir) == CEPH_SNAPDIR) {
775 /* mkdir .snap/foo is a MKSNAP */ 775 /* mkdir .snap/foo is a MKSNAP */
776 op = CEPH_MDS_OP_MKSNAP; 776 op = CEPH_MDS_OP_MKSNAP;
777 dout("mksnap dir %p snap '%.*s' dn %p\n", dir, 777 dout("mksnap dir %p snap '%pd' dn %p\n", dir,
778 dentry->d_name.len, dentry->d_name.name, dentry); 778 dentry, dentry);
779 } else if (ceph_snap(dir) == CEPH_NOSNAP) { 779 } else if (ceph_snap(dir) == CEPH_NOSNAP) {
780 dout("mkdir dir %p dn %p mode 0%ho\n", dir, dentry, mode); 780 dout("mkdir dir %p dn %p mode 0%ho\n", dir, dentry, mode);
781 op = CEPH_MDS_OP_MKDIR; 781 op = CEPH_MDS_OP_MKDIR;
@@ -888,8 +888,7 @@ static int ceph_unlink(struct inode *dir, struct dentry *dentry)
888 888
889 if (ceph_snap(dir) == CEPH_SNAPDIR) { 889 if (ceph_snap(dir) == CEPH_SNAPDIR) {
890 /* rmdir .snap/foo is RMSNAP */ 890 /* rmdir .snap/foo is RMSNAP */
891 dout("rmsnap dir %p '%.*s' dn %p\n", dir, dentry->d_name.len, 891 dout("rmsnap dir %p '%pd' dn %p\n", dir, dentry, dentry);
892 dentry->d_name.name, dentry);
893 op = CEPH_MDS_OP_RMSNAP; 892 op = CEPH_MDS_OP_RMSNAP;
894 } else if (ceph_snap(dir) == CEPH_NOSNAP) { 893 } else if (ceph_snap(dir) == CEPH_NOSNAP) {
895 dout("unlink/rmdir dir %p dn %p inode %p\n", 894 dout("unlink/rmdir dir %p dn %p inode %p\n",
@@ -1063,16 +1062,15 @@ static int ceph_d_revalidate(struct dentry *dentry, unsigned int flags)
1063 if (flags & LOOKUP_RCU) 1062 if (flags & LOOKUP_RCU)
1064 return -ECHILD; 1063 return -ECHILD;
1065 1064
1066 dout("d_revalidate %p '%.*s' inode %p offset %lld\n", dentry, 1065 dout("d_revalidate %p '%pd' inode %p offset %lld\n", dentry,
1067 dentry->d_name.len, dentry->d_name.name, dentry->d_inode, 1066 dentry, dentry->d_inode, ceph_dentry(dentry)->offset);
1068 ceph_dentry(dentry)->offset);
1069 1067
1070 dir = ceph_get_dentry_parent_inode(dentry); 1068 dir = ceph_get_dentry_parent_inode(dentry);
1071 1069
1072 /* always trust cached snapped dentries, snapdir dentry */ 1070 /* always trust cached snapped dentries, snapdir dentry */
1073 if (ceph_snap(dir) != CEPH_NOSNAP) { 1071 if (ceph_snap(dir) != CEPH_NOSNAP) {
1074 dout("d_revalidate %p '%.*s' inode %p is SNAPPED\n", dentry, 1072 dout("d_revalidate %p '%pd' inode %p is SNAPPED\n", dentry,
1075 dentry->d_name.len, dentry->d_name.name, dentry->d_inode); 1073 dentry, dentry->d_inode);
1076 valid = 1; 1074 valid = 1;
1077 } else if (dentry->d_inode && 1075 } else if (dentry->d_inode &&
1078 ceph_snap(dentry->d_inode) == CEPH_SNAPDIR) { 1076 ceph_snap(dentry->d_inode) == CEPH_SNAPDIR) {
@@ -1265,8 +1263,7 @@ void ceph_dentry_lru_add(struct dentry *dn)
1265 struct ceph_dentry_info *di = ceph_dentry(dn); 1263 struct ceph_dentry_info *di = ceph_dentry(dn);
1266 struct ceph_mds_client *mdsc; 1264 struct ceph_mds_client *mdsc;
1267 1265
1268 dout("dentry_lru_add %p %p '%.*s'\n", di, dn, 1266 dout("dentry_lru_add %p %p '%pd'\n", di, dn, dn);
1269 dn->d_name.len, dn->d_name.name);
1270 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; 1267 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc;
1271 spin_lock(&mdsc->dentry_lru_lock); 1268 spin_lock(&mdsc->dentry_lru_lock);
1272 list_add_tail(&di->lru, &mdsc->dentry_lru); 1269 list_add_tail(&di->lru, &mdsc->dentry_lru);
@@ -1279,8 +1276,8 @@ void ceph_dentry_lru_touch(struct dentry *dn)
1279 struct ceph_dentry_info *di = ceph_dentry(dn); 1276 struct ceph_dentry_info *di = ceph_dentry(dn);
1280 struct ceph_mds_client *mdsc; 1277 struct ceph_mds_client *mdsc;
1281 1278
1282 dout("dentry_lru_touch %p %p '%.*s' (offset %lld)\n", di, dn, 1279 dout("dentry_lru_touch %p %p '%pd' (offset %lld)\n", di, dn, dn,
1283 dn->d_name.len, dn->d_name.name, di->offset); 1280 di->offset);
1284 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; 1281 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc;
1285 spin_lock(&mdsc->dentry_lru_lock); 1282 spin_lock(&mdsc->dentry_lru_lock);
1286 list_move_tail(&di->lru, &mdsc->dentry_lru); 1283 list_move_tail(&di->lru, &mdsc->dentry_lru);
@@ -1292,8 +1289,7 @@ void ceph_dentry_lru_del(struct dentry *dn)
1292 struct ceph_dentry_info *di = ceph_dentry(dn); 1289 struct ceph_dentry_info *di = ceph_dentry(dn);
1293 struct ceph_mds_client *mdsc; 1290 struct ceph_mds_client *mdsc;
1294 1291
1295 dout("dentry_lru_del %p %p '%.*s'\n", di, dn, 1292 dout("dentry_lru_del %p %p '%pd'\n", di, dn, dn);
1296 dn->d_name.len, dn->d_name.name);
1297 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; 1293 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc;
1298 spin_lock(&mdsc->dentry_lru_lock); 1294 spin_lock(&mdsc->dentry_lru_lock);
1299 list_del_init(&di->lru); 1295 list_del_init(&di->lru);
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index d7e0da8366e6..db2c967950f7 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -238,8 +238,8 @@ int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
238 struct ceph_acls_info acls = {}; 238 struct ceph_acls_info acls = {};
239 int err; 239 int err;
240 240
241 dout("atomic_open %p dentry %p '%.*s' %s flags %d mode 0%o\n", 241 dout("atomic_open %p dentry %p '%pd' %s flags %d mode 0%o\n",
242 dir, dentry, dentry->d_name.len, dentry->d_name.name, 242 dir, dentry, dentry,
243 d_unhashed(dentry) ? "unhashed" : "hashed", flags, mode); 243 d_unhashed(dentry) ? "unhashed" : "hashed", flags, mode);
244 244
245 if (dentry->d_name.len > NAME_MAX) 245 if (dentry->d_name.len > NAME_MAX)
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 90ec8e32c138..a5593d51d035 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1186,20 +1186,18 @@ retry_lookup:
1186 struct inode *olddir = req->r_old_dentry_dir; 1186 struct inode *olddir = req->r_old_dentry_dir;
1187 BUG_ON(!olddir); 1187 BUG_ON(!olddir);
1188 1188
1189 dout(" src %p '%.*s' dst %p '%.*s'\n", 1189 dout(" src %p '%pd' dst %p '%pd'\n",
1190 req->r_old_dentry, 1190 req->r_old_dentry,
1191 req->r_old_dentry->d_name.len, 1191 req->r_old_dentry,
1192 req->r_old_dentry->d_name.name, 1192 dn, dn);
1193 dn, dn->d_name.len, dn->d_name.name);
1194 dout("fill_trace doing d_move %p -> %p\n", 1193 dout("fill_trace doing d_move %p -> %p\n",
1195 req->r_old_dentry, dn); 1194 req->r_old_dentry, dn);
1196 1195
1197 d_move(req->r_old_dentry, dn); 1196 d_move(req->r_old_dentry, dn);
1198 dout(" src %p '%.*s' dst %p '%.*s'\n", 1197 dout(" src %p '%pd' dst %p '%pd'\n",
1198 req->r_old_dentry,
1199 req->r_old_dentry, 1199 req->r_old_dentry,
1200 req->r_old_dentry->d_name.len, 1200 dn, dn);
1201 req->r_old_dentry->d_name.name,
1202 dn, dn->d_name.len, dn->d_name.name);
1203 1201
1204 /* ensure target dentry is invalidated, despite 1202 /* ensure target dentry is invalidated, despite
1205 rehashing bug in vfs_rename_dir */ 1203 rehashing bug in vfs_rename_dir */
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index 668dcabc5695..c9c298bd3058 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -386,7 +386,7 @@ static void remove_dir(struct dentry * d)
386 if (d->d_inode) 386 if (d->d_inode)
387 simple_rmdir(parent->d_inode,d); 387 simple_rmdir(parent->d_inode,d);
388 388
389 pr_debug(" o %s removing done (%d)\n",d->d_name.name, d_count(d)); 389 pr_debug(" o %pd removing done (%d)\n", d, d_count(d));
390 390
391 dput(parent); 391 dput(parent);
392} 392}
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index caa8d95b24e8..bf50259012ab 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1988,7 +1988,7 @@ static int fuse_write_begin(struct file *file, struct address_space *mapping,
1988 struct page **pagep, void **fsdata) 1988 struct page **pagep, void **fsdata)
1989{ 1989{
1990 pgoff_t index = pos >> PAGE_CACHE_SHIFT; 1990 pgoff_t index = pos >> PAGE_CACHE_SHIFT;
1991 struct fuse_conn *fc = get_fuse_conn(file->f_dentry->d_inode); 1991 struct fuse_conn *fc = get_fuse_conn(file_inode(file));
1992 struct page *page; 1992 struct page *page;
1993 loff_t fsize; 1993 loff_t fsize;
1994 int err = -ENOMEM; 1994 int err = -ENOMEM;
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index d59c7defb1ef..38fdc533f4ec 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -84,7 +84,7 @@ static int jfs_create(struct inode *dip, struct dentry *dentry, umode_t mode,
84 struct inode *iplist[2]; 84 struct inode *iplist[2];
85 struct tblock *tblk; 85 struct tblock *tblk;
86 86
87 jfs_info("jfs_create: dip:0x%p name:%s", dip, dentry->d_name.name); 87 jfs_info("jfs_create: dip:0x%p name:%pd", dip, dentry);
88 88
89 dquot_initialize(dip); 89 dquot_initialize(dip);
90 90
@@ -216,7 +216,7 @@ static int jfs_mkdir(struct inode *dip, struct dentry *dentry, umode_t mode)
216 struct inode *iplist[2]; 216 struct inode *iplist[2];
217 struct tblock *tblk; 217 struct tblock *tblk;
218 218
219 jfs_info("jfs_mkdir: dip:0x%p name:%s", dip, dentry->d_name.name); 219 jfs_info("jfs_mkdir: dip:0x%p name:%pd", dip, dentry);
220 220
221 dquot_initialize(dip); 221 dquot_initialize(dip);
222 222
@@ -352,7 +352,7 @@ static int jfs_rmdir(struct inode *dip, struct dentry *dentry)
352 struct inode *iplist[2]; 352 struct inode *iplist[2];
353 struct tblock *tblk; 353 struct tblock *tblk;
354 354
355 jfs_info("jfs_rmdir: dip:0x%p name:%s", dip, dentry->d_name.name); 355 jfs_info("jfs_rmdir: dip:0x%p name:%pd", dip, dentry);
356 356
357 /* Init inode for quota operations. */ 357 /* Init inode for quota operations. */
358 dquot_initialize(dip); 358 dquot_initialize(dip);
@@ -480,7 +480,7 @@ static int jfs_unlink(struct inode *dip, struct dentry *dentry)
480 s64 new_size = 0; 480 s64 new_size = 0;
481 int commit_flag; 481 int commit_flag;
482 482
483 jfs_info("jfs_unlink: dip:0x%p name:%s", dip, dentry->d_name.name); 483 jfs_info("jfs_unlink: dip:0x%p name:%pd", dip, dentry);
484 484
485 /* Init inode for quota operations. */ 485 /* Init inode for quota operations. */
486 dquot_initialize(dip); 486 dquot_initialize(dip);
@@ -797,8 +797,7 @@ static int jfs_link(struct dentry *old_dentry,
797 struct btstack btstack; 797 struct btstack btstack;
798 struct inode *iplist[2]; 798 struct inode *iplist[2];
799 799
800 jfs_info("jfs_link: %s %s", old_dentry->d_name.name, 800 jfs_info("jfs_link: %pd %pd", old_dentry, dentry);
801 dentry->d_name.name);
802 801
803 dquot_initialize(dir); 802 dquot_initialize(dir);
804 803
@@ -1082,8 +1081,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1082 int commit_flag; 1081 int commit_flag;
1083 1082
1084 1083
1085 jfs_info("jfs_rename: %s %s", old_dentry->d_name.name, 1084 jfs_info("jfs_rename: %pd %pd", old_dentry, new_dentry);
1086 new_dentry->d_name.name);
1087 1085
1088 dquot_initialize(old_dir); 1086 dquot_initialize(old_dir);
1089 dquot_initialize(new_dir); 1087 dquot_initialize(new_dir);
@@ -1355,7 +1353,7 @@ static int jfs_mknod(struct inode *dir, struct dentry *dentry,
1355 if (!new_valid_dev(rdev)) 1353 if (!new_valid_dev(rdev))
1356 return -EINVAL; 1354 return -EINVAL;
1357 1355
1358 jfs_info("jfs_mknod: %s", dentry->d_name.name); 1356 jfs_info("jfs_mknod: %pd", dentry);
1359 1357
1360 dquot_initialize(dir); 1358 dquot_initialize(dir);
1361 1359
@@ -1444,7 +1442,7 @@ static struct dentry *jfs_lookup(struct inode *dip, struct dentry *dentry, unsig
1444 struct component_name key; 1442 struct component_name key;
1445 int rc; 1443 int rc;
1446 1444
1447 jfs_info("jfs_lookup: name = %s", dentry->d_name.name); 1445 jfs_info("jfs_lookup: name = %pd", dentry);
1448 1446
1449 if ((rc = get_UCSname(&key, dentry))) 1447 if ((rc = get_UCSname(&key, dentry)))
1450 return ERR_PTR(rc); 1448 return ERR_PTR(rc);
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 44d7d0c7e376..105ccc30572d 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -133,7 +133,7 @@ out:
133static int 133static int
134nfs_closedir(struct inode *inode, struct file *filp) 134nfs_closedir(struct inode *inode, struct file *filp)
135{ 135{
136 put_nfs_open_dir_context(filp->f_path.dentry->d_inode, filp->private_data); 136 put_nfs_open_dir_context(file_inode(filp), filp->private_data);
137 return 0; 137 return 0;
138} 138}
139 139
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index eeea7a90eb87..b1eed4dd2eab 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -1886,7 +1886,7 @@ static __be32 nfsd4_encode_path(struct xdr_stream *xdr,
1886 goto out_free; 1886 goto out_free;
1887 } 1887 }
1888 p = xdr_encode_opaque(p, dentry->d_name.name, len); 1888 p = xdr_encode_opaque(p, dentry->d_name.name, len);
1889 dprintk("/%s", dentry->d_name.name); 1889 dprintk("/%pd", dentry);
1890 spin_unlock(&dentry->d_lock); 1890 spin_unlock(&dentry->d_lock);
1891 dput(dentry); 1891 dput(dentry);
1892 ncomponents--; 1892 ncomponents--;
diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c
index 436f36037e09..b3973c2fd190 100644
--- a/fs/ntfs/namei.c
+++ b/fs/ntfs/namei.c
@@ -111,8 +111,8 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent,
111 unsigned long dent_ino; 111 unsigned long dent_ino;
112 int uname_len; 112 int uname_len;
113 113
114 ntfs_debug("Looking up %s in directory inode 0x%lx.", 114 ntfs_debug("Looking up %pd in directory inode 0x%lx.",
115 dent->d_name.name, dir_ino->i_ino); 115 dent, dir_ino->i_ino);
116 /* Convert the name of the dentry to Unicode. */ 116 /* Convert the name of the dentry to Unicode. */
117 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len, 117 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len,
118 &uname); 118 &uname);
diff --git a/fs/ocfs2/dcache.c b/fs/ocfs2/dcache.c
index 92edcfc23c1c..4fda7a5f3088 100644
--- a/fs/ocfs2/dcache.c
+++ b/fs/ocfs2/dcache.c
@@ -251,8 +251,8 @@ int ocfs2_dentry_attach_lock(struct dentry *dentry,
251 251
252 if (dl) { 252 if (dl) {
253 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno, 253 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno,
254 " \"%.*s\": old parent: %llu, new: %llu\n", 254 " \"%pd\": old parent: %llu, new: %llu\n",
255 dentry->d_name.len, dentry->d_name.name, 255 dentry,
256 (unsigned long long)parent_blkno, 256 (unsigned long long)parent_blkno,
257 (unsigned long long)dl->dl_parent_blkno); 257 (unsigned long long)dl->dl_parent_blkno);
258 return 0; 258 return 0;
@@ -277,8 +277,8 @@ int ocfs2_dentry_attach_lock(struct dentry *dentry,
277 (unsigned long long)OCFS2_I(inode)->ip_blkno); 277 (unsigned long long)OCFS2_I(inode)->ip_blkno);
278 278
279 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno, 279 mlog_bug_on_msg(dl->dl_parent_blkno != parent_blkno,
280 " \"%.*s\": old parent: %llu, new: %llu\n", 280 " \"%pd\": old parent: %llu, new: %llu\n",
281 dentry->d_name.len, dentry->d_name.name, 281 dentry,
282 (unsigned long long)parent_blkno, 282 (unsigned long long)parent_blkno,
283 (unsigned long long)dl->dl_parent_blkno); 283 (unsigned long long)dl->dl_parent_blkno);
284 284
@@ -406,17 +406,15 @@ static void ocfs2_dentry_iput(struct dentry *dentry, struct inode *inode)
406 if (inode) 406 if (inode)
407 ino = (unsigned long long)OCFS2_I(inode)->ip_blkno; 407 ino = (unsigned long long)OCFS2_I(inode)->ip_blkno;
408 mlog(ML_ERROR, "Dentry is missing cluster lock. " 408 mlog(ML_ERROR, "Dentry is missing cluster lock. "
409 "inode: %llu, d_flags: 0x%x, d_name: %.*s\n", 409 "inode: %llu, d_flags: 0x%x, d_name: %pd\n",
410 ino, dentry->d_flags, dentry->d_name.len, 410 ino, dentry->d_flags, dentry);
411 dentry->d_name.name);
412 } 411 }
413 412
414 goto out; 413 goto out;
415 } 414 }
416 415
417 mlog_bug_on_msg(dl->dl_count == 0, "dentry: %.*s, count: %u\n", 416 mlog_bug_on_msg(dl->dl_count == 0, "dentry: %pd, count: %u\n",
418 dentry->d_name.len, dentry->d_name.name, 417 dentry, dl->dl_count);
419 dl->dl_count);
420 418
421 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl); 419 ocfs2_dentry_lock_put(OCFS2_SB(dentry->d_sb), dl);
422 420
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index 09b7d9dac71d..57c40e34f56f 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -565,8 +565,8 @@ static int dlmfs_unlink(struct inode *dir,
565 * to acquire a lock, this basically destroys our lockres. */ 565 * to acquire a lock, this basically destroys our lockres. */
566 status = user_dlm_destroy_lock(&DLMFS_I(inode)->ip_lockres); 566 status = user_dlm_destroy_lock(&DLMFS_I(inode)->ip_lockres);
567 if (status < 0) { 567 if (status < 0) {
568 mlog(ML_ERROR, "unlink %.*s, error %d from destroy\n", 568 mlog(ML_ERROR, "unlink %pd, error %d from destroy\n",
569 dentry->d_name.len, dentry->d_name.name, status); 569 dentry, status);
570 goto bail; 570 goto bail;
571 } 571 }
572 status = simple_unlink(dir, dentry); 572 status = simple_unlink(dir, dentry);
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 21262f2b1654..37297c14f9a3 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -3725,8 +3725,7 @@ static int ocfs2_dentry_convert_worker(struct ocfs2_lock_res *lockres,
3725 break; 3725 break;
3726 spin_unlock(&dentry_attach_lock); 3726 spin_unlock(&dentry_attach_lock);
3727 3727
3728 mlog(0, "d_delete(%.*s);\n", dentry->d_name.len, 3728 mlog(0, "d_delete(%pd);\n", dentry);
3729 dentry->d_name.name);
3730 3729
3731 /* 3730 /*
3732 * The following dcache calls may do an 3731 * The following dcache calls may do an
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index 628248ce2f8b..04b06146bae2 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -210,9 +210,9 @@ fill_with_dentries(struct dir_context *ctx, const char *name, int namelen,
210 } else if (!dentry->d_inode) { 210 } else if (!dentry->d_inode) {
211 /* A directory entry exists, but no file? */ 211 /* A directory entry exists, but no file? */
212 reiserfs_error(dentry->d_sb, "xattr-20003", 212 reiserfs_error(dentry->d_sb, "xattr-20003",
213 "Corrupted directory: xattr %s listed but " 213 "Corrupted directory: xattr %pd listed but "
214 "not found for file %s.\n", 214 "not found for file %pd.\n",
215 dentry->d_name.name, dbuf->xadir->d_name.name); 215 dentry, dbuf->xadir);
216 dput(dentry); 216 dput(dentry);
217 return -EIO; 217 return -EIO;
218 } 218 }