提交 a61246c9 编写于 作者: L Lance Shelton 提交者: Trond Myklebust

Fix error code in nfs_lookup_verify_inode()

Return -ESTALE to force a lookup when the file has no more links
Signed-off-by: NLance Shelton <lance.shelton@hammerspace.com>
Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
上级 3825827e
...@@ -1038,7 +1038,7 @@ int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags) ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册