diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-12-18 11:43:51 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-12 20:02:46 -0500 |
commit | 1c929cfe6d8f2087a337a868fbf6c38d56bb4889 (patch) | |
tree | 7af4da88d893a45bff4fa3df9163a150a8a837b7 /fs/cifs/cifsfs.c | |
parent | 8b244ff2fa58f81f84aa03c82c2c23307a778ce7 (diff) | |
download | lwn-1c929cfe6d8f2087a337a868fbf6c38d56bb4889.tar.gz lwn-1c929cfe6d8f2087a337a868fbf6c38d56bb4889.zip |
switch cifs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 5e7075d5f139..d9f652a522a6 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -174,6 +174,12 @@ cifs_read_super(struct super_block *sb, void *data, goto out_no_root; } + /* do that *after* d_alloc_root() - we want NULL ->d_op for root here */ + if (cifs_sb_master_tcon(cifs_sb)->nocase) + sb->s_d_op = &cifs_ci_dentry_ops; + else + sb->s_d_op = &cifs_dentry_ops; + #ifdef CONFIG_CIFS_EXPERIMENTAL if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM) { cFYI(1, "export ops supported"); |