Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf130914 authored by Al Viro's avatar Al Viro
Browse files

nfs_lookup(): remove debris left over from old sillyunlink exclusion



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 96b0cffb
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -1363,7 +1363,6 @@ EXPORT_SYMBOL_GPL(nfs_dentry_operations);
struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned int flags)
{
	struct dentry *res;
	struct dentry *parent;
	struct inode *inode = NULL;
	struct nfs_fh *fhandle = NULL;
	struct nfs_fattr *fattr = NULL;
@@ -1393,20 +1392,18 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in
	if (IS_ERR(label))
		goto out;

	parent = dentry->d_parent;
	/* Protect against concurrent sillydeletes */
	trace_nfs_lookup_enter(dir, dentry, flags);
	error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, fhandle, fattr, label);
	if (error == -ENOENT)
		goto no_entry;
	if (error < 0) {
		res = ERR_PTR(error);
		goto out_unblock_sillyrename;
		goto out_label;
	}
	inode = nfs_fhget(dentry->d_sb, fhandle, fattr, label);
	res = ERR_CAST(inode);
	if (IS_ERR(res))
		goto out_unblock_sillyrename;
		goto out_label;

	/* Success: notify readdir to use READDIRPLUS */
	nfs_advise_use_readdirplus(dir);
@@ -1415,11 +1412,11 @@ struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, unsigned in
	res = d_splice_alias(inode, dentry);
	if (res != NULL) {
		if (IS_ERR(res))
			goto out_unblock_sillyrename;
			goto out_label;
		dentry = res;
	}
	nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
out_unblock_sillyrename:
out_label:
	trace_nfs_lookup_exit(dir, dentry, flags, error);
	nfs4_label_free(label);
out: