diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-09-16 10:53:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-10-24 23:34:50 -0400 |
commit | 6de1472f1a4a3bd912f515f29d3cf52a65a4c718 (patch) | |
tree | 3b93cfa6198d68832479f211c72a675bfb406fd9 /fs/nfs/nfs4namespace.c | |
parent | 48bc06e74be178968b53d339dbcb110cd2bb16ea (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/nfs4namespace.c')
-rw-r--r-- | fs/nfs/nfs4namespace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfs/nfs4namespace.c b/fs/nfs/nfs4namespace.c index 2288cd3c9278..049b9fb0d2c9 100644 --- a/fs/nfs/nfs4namespace.c +++ b/fs/nfs/nfs4namespace.c | |||
@@ -283,8 +283,7 @@ static struct vfsmount *nfs_follow_referral(struct dentry *dentry, | |||
283 | if (locations == NULL || locations->nlocations <= 0) | 283 | if (locations == NULL || locations->nlocations <= 0) |
284 | goto out; | 284 | goto out; |
285 | 285 | ||
286 | dprintk("%s: referral at %s/%s\n", __func__, | 286 | dprintk("%s: referral at %pd2\n", __func__, dentry); |
287 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
288 | 287 | ||
289 | page = (char *) __get_free_page(GFP_USER); | 288 | page = (char *) __get_free_page(GFP_USER); |
290 | if (!page) | 289 | if (!page) |
@@ -348,8 +347,8 @@ static struct vfsmount *nfs_do_refmount(struct rpc_clnt *client, struct dentry * | |||
348 | mnt = ERR_PTR(-ENOENT); | 347 | mnt = ERR_PTR(-ENOENT); |
349 | 348 | ||
350 | parent = dget_parent(dentry); | 349 | parent = dget_parent(dentry); |
351 | dprintk("%s: getting locations for %s/%s\n", | 350 | dprintk("%s: getting locations for %pd2\n", |
352 | __func__, parent->d_name.name, dentry->d_name.name); | 351 | __func__, dentry); |
353 | 352 | ||
354 | err = nfs4_proc_fs_locations(client, parent->d_inode, &dentry->d_name, fs_locations, page); | 353 | err = nfs4_proc_fs_locations(client, parent->d_inode, &dentry->d_name, fs_locations, page); |
355 | dput(parent); | 354 | dput(parent); |