aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/proc.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-09-16 10:53:17 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-10-24 23:34:50 -0400
commit6de1472f1a4a3bd912f515f29d3cf52a65a4c718 (patch)
tree3b93cfa6198d68832479f211c72a675bfb406fd9 /fs/nfs/proc.c
parent48bc06e74be178968b53d339dbcb110cd2bb16ea (diff)
nfs: use %p[dD] instead of open-coded (and often racy) equivalents
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r--fs/nfs/proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c
index a8f57c728df5..fddbba2d9eff 100644
--- a/fs/nfs/proc.c
+++ b/fs/nfs/proc.c
@@ -235,7 +235,7 @@ nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
235 }; 235 };
236 int status = -ENOMEM; 236 int status = -ENOMEM;
237 237
238 dprintk("NFS call create %s\n", dentry->d_name.name); 238 dprintk("NFS call create %pd\n", dentry);
239 data = nfs_alloc_createdata(dir, dentry, sattr); 239 data = nfs_alloc_createdata(dir, dentry, sattr);
240 if (data == NULL) 240 if (data == NULL)
241 goto out; 241 goto out;
@@ -265,7 +265,7 @@ nfs_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
265 umode_t mode; 265 umode_t mode;
266 int status = -ENOMEM; 266 int status = -ENOMEM;
267 267
268 dprintk("NFS call mknod %s\n", dentry->d_name.name); 268 dprintk("NFS call mknod %pd\n", dentry);
269 269
270 mode = sattr->ia_mode; 270 mode = sattr->ia_mode;
271 if (S_ISFIFO(mode)) { 271 if (S_ISFIFO(mode)) {
@@ -423,7 +423,7 @@ nfs_proc_symlink(struct inode *dir, struct dentry *dentry, struct page *page,
423 }; 423 };
424 int status = -ENAMETOOLONG; 424 int status = -ENAMETOOLONG;
425 425
426 dprintk("NFS call symlink %s\n", dentry->d_name.name); 426 dprintk("NFS call symlink %pd\n", dentry);
427 427
428 if (len > NFS2_MAXPATHLEN) 428 if (len > NFS2_MAXPATHLEN)
429 goto out; 429 goto out;
@@ -462,7 +462,7 @@ nfs_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)
462 }; 462 };
463 int status = -ENOMEM; 463 int status = -ENOMEM;
464 464
465 dprintk("NFS call mkdir %s\n", dentry->d_name.name); 465 dprintk("NFS call mkdir %pd\n", dentry);
466 data = nfs_alloc_createdata(dir, dentry, sattr); 466 data = nfs_alloc_createdata(dir, dentry, sattr);
467 if (data == NULL) 467 if (data == NULL)
468 goto out; 468 goto out;