aboutsummaryrefslogtreecommitdiffstats
path: root/fs/autofs4
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-10-21 20:11:25 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 13:01:20 -0500
commita455589f181e60439c736c6c6a068bb7e6dc23f0 (patch)
tree48d377e7db8d21fd606ba8c84a72b95f3d23c10b /fs/autofs4
parent41d28bca2da4bd75a8915c1ccf2cacf7f4a2e531 (diff)
assorted conversions to %p[dD]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/autofs4')
-rw-r--r--fs/autofs4/expire.c30
-rw-r--r--fs/autofs4/root.c23
2 files changed, 18 insertions, 35 deletions
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