aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/dir.c')
-rw-r--r--fs/cifs/dir.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index a40054faed7f..ff55fc6932cb 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -643,6 +643,15 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
643 } 643 }
644 } 644 }
645 645
646 /*
647 * O_EXCL: optimize away the lookup, but don't hash the dentry. Let
648 * the VFS handle the create.
649 */
650 if (nd->flags & LOOKUP_EXCL) {
651 d_instantiate(direntry, NULL);
652 return 0;
653 }
654
646 /* can not grab the rename sem here since it would 655 /* can not grab the rename sem here since it would
647 deadlock in the cases (beginning of sys_rename itself) 656 deadlock in the cases (beginning of sys_rename itself)
648 in which we already have the sb rename sem */ 657 in which we already have the sb rename sem */