diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-12-18 17:43:51 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-13 02:02:46 +0100 |
commit | 1c929cfe6d8f2087a337a868fbf6c38d56bb4889 (patch) | |
tree | 7af4da88d893a45bff4fa3df9163a150a8a837b7 /fs/cifs/cifsfs.c | |
parent | switch nfs to ->s_d_op (diff) | |
download | linux-1c929cfe6d8f2087a337a868fbf6c38d56bb4889.tar.xz linux-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"); |