mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
Fix error code in nfs_lookup_verify_inode()
Return -ESTALE to force a lookup when the file has no more links Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
3825827ebf
commit
a61246c961
1 changed files with 1 additions and 1 deletions
|
@ -1038,7 +1038,7 @@ int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags)
|
||||||
if (flags & LOOKUP_REVAL)
|
if (flags & LOOKUP_REVAL)
|
||||||
goto out_force;
|
goto out_force;
|
||||||
out:
|
out:
|
||||||
return (inode->i_nlink == 0) ? -ENOENT : 0;
|
return (inode->i_nlink == 0) ? -ESTALE : 0;
|
||||||
out_force:
|
out_force:
|
||||||
if (flags & LOOKUP_RCU)
|
if (flags & LOOKUP_RCU)
|
||||||
return -ECHILD;
|
return -ECHILD;
|
||||||
|
|
Loading…
Reference in a new issue