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

Commit a61246c9 authored by Lance Shelton's avatar Lance Shelton Committed by Trond Myklebust
Browse files

Fix error code in nfs_lookup_verify_inode()



Return -ESTALE to force a lookup when the file has no more links

Signed-off-by: default avatarLance Shelton <lance.shelton@hammerspace.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 3825827e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1038,7 +1038,7 @@ int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags)
	if (flags & LOOKUP_REVAL)
		goto out_force;
out:
	return (inode->i_nlink == 0) ? -ENOENT : 0;
	return (inode->i_nlink == 0) ? -ESTALE : 0;
out_force:
	if (flags & LOOKUP_RCU)
		return -ECHILD;