projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a127e0a
)
cifs_lookup(): LOOKUP_OPEN is set only on the last component
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 26 Jun 2011 01:45:21 +0000
(21:45 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:44:00 +0000
(
01:44
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/dir.c
b/fs/cifs/dir.c
index 251c2ca569d3a2b15dd63f90261ccd149120794f..14d602f178c29de58a5429ba2a099b424f7c771f 100644
(file)
--- 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,