summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2019-09-13 14:29:04 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-09-20 21:15:24 +0200
commit581057c8346b9da51f1115768fd4189ed5eab19b (patch)
tree04ee390c97854acb92e15069b16a8ad9804eb7e3 /fs/nfs
parentNFSv3: use nfs_add_or_obtain() to create and reference inodes (diff)
downloadlinux-581057c8346b9da51f1115768fd4189ed5eab19b.tar.xz
linux-581057c8346b9da51f1115768fd4189ed5eab19b.zip
NFS: remove unused check for negative dentry
This check has been hanging out since we used to have parallel paths to add dentry in nfs_create(), but that hasn't been the case for some years. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index d1bbf2fb6ac7..dd8b218785be 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1677,15 +1677,11 @@ nfs_add_or_obtain(struct dentry *dentry, struct nfs_fh *fhandle,
struct dentry *parent = dget_parent(dentry);
struct inode *dir = d_inode(parent);
struct inode *inode;
- struct dentry *d = NULL;
+ struct dentry *d;
int error;
d_drop(dentry);
- /* We may have been initialized further down */
- if (d_really_is_positive(dentry))
- goto out;
-
if (fhandle->size == 0) {
error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, NULL);
if (error)