From: Benjamin Coddington Date: Fri, 13 Sep 2019 12:29:04 +0000 (-0400) Subject: NFS: remove unused check for negative dentry X-Git-Tag: v5.4-rc1~40^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=581057c8346b9da51f1115768fd4189ed5eab19b;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index d1bbf2f..dd8b2187 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)