提交 8aeb376c 编写于 作者: A Al Viro

nfs: LOOKUP_{OPEN,CREATE,EXCL} is set only on the last step

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 43527803
...@@ -997,14 +997,12 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry) ...@@ -997,14 +997,12 @@ static int nfs_check_verifier(struct inode *dir, struct dentry *dentry)
* Return the intent data that applies to this particular path component * Return the intent data that applies to this particular path component
* *
* Note that the current set of intents only apply to the very last * Note that the current set of intents only apply to the very last
* component of the path. * component of the path and none of them is set before that last
* We check for this using LOOKUP_CONTINUE and LOOKUP_PARENT. * component.
*/ */
static inline unsigned int nfs_lookup_check_intent(struct nameidata *nd, static inline unsigned int nfs_lookup_check_intent(struct nameidata *nd,
unsigned int mask) unsigned int mask)
{ {
if (nd->flags & (LOOKUP_CONTINUE|LOOKUP_PARENT))
return 0;
return nd->flags & mask; return nd->flags & mask;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册