From: Al Viro Date: Sun, 26 Jun 2011 01:45:21 +0000 (-0400) Subject: cifs_lookup(): LOOKUP_OPEN is set only on the last component X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4352780386139ff33d2203868b392e6535deff61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cifs_lookup(): LOOKUP_OPEN is set only on the last component Signed-off-by: Al Viro --- diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index 251c2ca569d3..14d602f178c2 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,