aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsfh.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-16 10:57:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-24 23:34:51 -0400
commita6a9f18f0a9f943ada095753bdc4346aee67b1aa (patch)
tree267b42f505d580dd29c15dd7bf553ba27548bfe1 /fs/nfsd/nfsfh.c
parent6de1472f1a4a3bd912f515f29d3cf52a65a4c718 (diff)
nfsd: switch to %p[dD]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/nfsfh.c')
-rw-r--r--fs/nfsd/nfsfh.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c
index 814afaa4458a..3d0e15ae6f72 100644
--- a/fs/nfsd/nfsfh.c
+++ b/fs/nfsd/nfsfh.c
@@ -47,7 +47,7 @@ static int nfsd_acceptable(void *expv, struct dentry *dentry)
47 tdentry = parent; 47 tdentry = parent;
48 } 48 }
49 if (tdentry != exp->ex_path.dentry) 49 if (tdentry != exp->ex_path.dentry)
50 dprintk("nfsd_acceptable failed at %p %s\n", tdentry, tdentry->d_name.name); 50 dprintk("nfsd_acceptable failed at %p %pd\n", tdentry, tdentry);
51 rv = (tdentry == exp->ex_path.dentry); 51 rv = (tdentry == exp->ex_path.dentry);
52 dput(tdentry); 52 dput(tdentry);
53 return rv; 53 return rv;
@@ -253,8 +253,8 @@ static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp)
253 253
254 if (S_ISDIR(dentry->d_inode->i_mode) && 254 if (S_ISDIR(dentry->d_inode->i_mode) &&
255 (dentry->d_flags & DCACHE_DISCONNECTED)) { 255 (dentry->d_flags & DCACHE_DISCONNECTED)) {
256 printk("nfsd: find_fh_dentry returned a DISCONNECTED directory: %s/%s\n", 256 printk("nfsd: find_fh_dentry returned a DISCONNECTED directory: %pd2\n",
257 dentry->d_parent->d_name.name, dentry->d_name.name); 257 dentry);
258 } 258 }
259 259
260 fhp->fh_dentry = dentry; 260 fhp->fh_dentry = dentry;
@@ -361,10 +361,9 @@ skip_pseudoflavor_check:
361 error = nfsd_permission(rqstp, exp, dentry, access); 361 error = nfsd_permission(rqstp, exp, dentry, access);
362 362
363 if (error) { 363 if (error) {
364 dprintk("fh_verify: %s/%s permission failure, " 364 dprintk("fh_verify: %pd2 permission failure, "
365 "acc=%x, error=%d\n", 365 "acc=%x, error=%d\n",
366 dentry->d_parent->d_name.name, 366 dentry,
367 dentry->d_name.name,
368 access, ntohl(error)); 367 access, ntohl(error));
369 } 368 }
370out: 369out:
@@ -514,14 +513,13 @@ fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry,
514 */ 513 */
515 514
516 struct inode * inode = dentry->d_inode; 515 struct inode * inode = dentry->d_inode;
517 struct dentry *parent = dentry->d_parent;
518 __u32 *datap; 516 __u32 *datap;
519 dev_t ex_dev = exp_sb(exp)->s_dev; 517 dev_t ex_dev = exp_sb(exp)->s_dev;
520 518
521 dprintk("nfsd: fh_compose(exp %02x:%02x/%ld %s/%s, ino=%ld)\n", 519 dprintk("nfsd: fh_compose(exp %02x:%02x/%ld %pd2, ino=%ld)\n",
522 MAJOR(ex_dev), MINOR(ex_dev), 520 MAJOR(ex_dev), MINOR(ex_dev),
523 (long) exp->ex_path.dentry->d_inode->i_ino, 521 (long) exp->ex_path.dentry->d_inode->i_ino,
524 parent->d_name.name, dentry->d_name.name, 522 dentry,
525 (inode ? inode->i_ino : 0)); 523 (inode ? inode->i_ino : 0));
526 524
527 /* Choose filehandle version and fsid type based on 525 /* Choose filehandle version and fsid type based on
@@ -534,13 +532,13 @@ fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry,
534 fh_put(ref_fh); 532 fh_put(ref_fh);
535 533
536 if (fhp->fh_locked || fhp->fh_dentry) { 534 if (fhp->fh_locked || fhp->fh_dentry) {
537 printk(KERN_ERR "fh_compose: fh %s/%s not initialized!\n", 535 printk(KERN_ERR "fh_compose: fh %pd2 not initialized!\n",
538 parent->d_name.name, dentry->d_name.name); 536 dentry);
539 } 537 }
540 if (fhp->fh_maxsize < NFS_FHSIZE) 538 if (fhp->fh_maxsize < NFS_FHSIZE)
541 printk(KERN_ERR "fh_compose: called with maxsize %d! %s/%s\n", 539 printk(KERN_ERR "fh_compose: called with maxsize %d! %pd2\n",
542 fhp->fh_maxsize, 540 fhp->fh_maxsize,
543 parent->d_name.name, dentry->d_name.name); 541 dentry);
544 542
545 fhp->fh_dentry = dget(dentry); /* our internal copy */ 543 fhp->fh_dentry = dget(dentry); /* our internal copy */
546 fhp->fh_export = exp; 544 fhp->fh_export = exp;
@@ -613,8 +611,8 @@ out_bad:
613 printk(KERN_ERR "fh_update: fh not verified!\n"); 611 printk(KERN_ERR "fh_update: fh not verified!\n");
614 goto out; 612 goto out;
615out_negative: 613out_negative:
616 printk(KERN_ERR "fh_update: %s/%s still negative!\n", 614 printk(KERN_ERR "fh_update: %pd2 still negative!\n",
617 dentry->d_parent->d_name.name, dentry->d_name.name); 615 dentry);
618 goto out; 616 goto out;
619} 617}
620 618