diff options
author | Steve French <sfrench@us.ibm.com> | 2005-08-22 23:09:43 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-08-22 23:09:43 -0400 |
commit | b92327fe6b25d60004b79df9e3c19091c03118ba (patch) | |
tree | 064479872cf0cc83d08f9c719edfd9769b01b9a3 /fs/cifs/inode.c | |
parent | a5a2b489bae8f66559a531df99a26eb16b42299e (diff) |
[CIFS] Finish up of case-insensitive dentry handling for cifs. This
will eventually (or should eventually) be common code for jfs, smbfs,
etc. but in the meantime is small enough and necessary when mounting
case insensitive to Windows (nocase).
Signed-off-by: Shaggy (shaggy@austin.ibm.com)
Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index ed3e9207d92e..2d50b3507d13 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -591,7 +591,10 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | |||
591 | rc = cifs_get_inode_info(&newinode, full_path, NULL, | 591 | rc = cifs_get_inode_info(&newinode, full_path, NULL, |
592 | inode->i_sb,xid); | 592 | inode->i_sb,xid); |
593 | 593 | ||
594 | direntry->d_op = &cifs_dentry_ops; | 594 | if (pTcon->nocase) |
595 | direntry->d_op = &cifs_ci_dentry_ops; | ||
596 | else | ||
597 | direntry->d_op = &cifs_dentry_ops; | ||
595 | d_instantiate(direntry, newinode); | 598 | d_instantiate(direntry, newinode); |
596 | if (direntry->d_inode) | 599 | if (direntry->d_inode) |
597 | direntry->d_inode->i_nlink = 2; | 600 | direntry->d_inode->i_nlink = 2; |