nfs: LOOKUP_{OPEN,CREATE,EXCL} is set only on the last step
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Jun 2011 01:48:43 +0000 (21:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:44:02 +0000 (01:44 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfs/dir.c

index 77ae95f1549760531542add9a3e7259dbb5134a3..8a45e6d1f6a477cfdb18fe29698c59c8d3f70a3b 100644 (file)
@@ -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
  *
  * Note that the current set of intents only apply to the very last
- * component of the path.
- * We check for this using LOOKUP_CONTINUE and LOOKUP_PARENT.
+ * component of the path and none of them is set before that last
+ * component.
  */
 static inline unsigned int nfs_lookup_check_intent(struct nameidata *nd,
                                                unsigned int mask)
 {
-       if (nd->flags & (LOOKUP_CONTINUE|LOOKUP_PARENT))
-               return 0;
        return nd->flags & mask;
 }