summaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-26 03:48:43 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 07:44:02 +0200
commit8aeb376ca0fe61038166c3b8243c678addb80abf (patch)
treedaae94f5aebe5decd67ad37dc642090ebaa9dba5 /fs/nfs/dir.c
parentcifs_lookup(): LOOKUP_OPEN is set only on the last component (diff)
downloadlinux-8aeb376ca0fe61038166c3b8243c678addb80abf.tar.xz
linux-8aeb376ca0fe61038166c3b8243c678addb80abf.zip
nfs: LOOKUP_{OPEN,CREATE,EXCL} is set only on the last step
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 77ae95f15497..8a45e6d1f6a4 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -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;
}