aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index da420e8c3298..b8ec6646456a 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -199,7 +199,10 @@ cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname)
199 ("Create symlink worked but get_inode_info failed with rc = %d ", 199 ("Create symlink worked but get_inode_info failed with rc = %d ",
200 rc)); 200 rc));
201 } else { 201 } else {
202 direntry->d_op = &cifs_dentry_ops; 202 if (pTcon->nocase)
203 direntry->d_op = &cifs_ci_dentry_ops;
204 else
205 direntry->d_op = &cifs_dentry_ops;
203 d_instantiate(direntry, newinode); 206 d_instantiate(direntry, newinode);
204 } 207 }
205 } 208 }