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
|
@ -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 New Issue