mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
cifs_lookup(): LOOKUP_OPEN is set only on the last component
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a127e0af59
commit
4352780386
@ -568,7 +568,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
|
|||||||
* reduction in network traffic in the other paths.
|
* reduction in network traffic in the other paths.
|
||||||
*/
|
*/
|
||||||
if (pTcon->unix_ext) {
|
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->flags & LOOKUP_OPEN) && !pTcon->broken_posix_open &&
|
||||||
(nd->intent.open.file->f_flags & O_CREAT)) {
|
(nd->intent.open.file->f_flags & O_CREAT)) {
|
||||||
rc = cifs_posix_open(full_path, &newInode,
|
rc = cifs_posix_open(full_path, &newInode,
|
||||||
|
Loading…
Reference in New Issue
Block a user