summaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-25 21:45:21 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 01:44:00 -0400
commit4352780386139ff33d2203868b392e6535deff61 (patch)
tree5bfc19790fa4c70b9153753d68e3dc11e49f7483 /fs/cifs/dir.c
parenta127e0af59ab610e8b37ac2dfa4cdb2ec8c8f604 (diff)
downloadop-kernel-dev-4352780386139ff33d2203868b392e6535deff61.zip
op-kernel-dev-4352780386139ff33d2203868b392e6535deff61.tar.gz
cifs_lookup(): LOOKUP_OPEN is set only on the last component
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 251c2ca..14d602f 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -568,7 +568,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
* reduction in network traffic in the other paths.
*/
if (pTcon->unix_ext) {
- if (nd && !(nd->flags & (LOOKUP_PARENT | LOOKUP_DIRECTORY)) &&
+ if (nd && !(nd->flags & LOOKUP_DIRECTORY) &&
(nd->flags & LOOKUP_OPEN) && !pTcon->broken_posix_open &&
(nd->intent.open.file->f_flags & O_CREAT)) {
rc = cifs_posix_open(full_path, &newInode,
OpenPOWER on IntegriCloud