aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 3fdc2258f447..8b4de6eaabd0 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -166,8 +166,9 @@ cifs_put_super(struct super_block *sb)
166} 166}
167 167
168static int 168static int
169cifs_statfs(struct super_block *sb, struct kstatfs *buf) 169cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
170{ 170{
171 struct super_block *sb = dentry->d_sb;
171 int xid; 172 int xid;
172 int rc = -EOPNOTSUPP; 173 int rc = -EOPNOTSUPP;
173 struct cifs_sb_info *cifs_sb; 174 struct cifs_sb_info *cifs_sb;
@@ -462,9 +463,9 @@ struct super_operations cifs_super_ops = {
462 .remount_fs = cifs_remount, 463 .remount_fs = cifs_remount,
463}; 464};
464 465
465static struct super_block * 466static int
466cifs_get_sb(struct file_system_type *fs_type, 467cifs_get_sb(struct file_system_type *fs_type,
467 int flags, const char *dev_name, void *data) 468 int flags, const char *dev_name, void *data, struct vfsmount *mnt)
468{ 469{
469 int rc; 470 int rc;
470 struct super_block *sb = sget(fs_type, NULL, set_anon_super, NULL); 471 struct super_block *sb = sget(fs_type, NULL, set_anon_super, NULL);
@@ -472,7 +473,7 @@ cifs_get_sb(struct file_system_type *fs_type,
472 cFYI(1, ("Devname: %s flags: %d ", dev_name, flags)); 473 cFYI(1, ("Devname: %s flags: %d ", dev_name, flags));
473 474
474 if (IS_ERR(sb)) 475 if (IS_ERR(sb))
475 return sb; 476 return PTR_ERR(sb);
476 477
477 sb->s_flags = flags; 478 sb->s_flags = flags;
478 479
@@ -480,10 +481,10 @@ cifs_get_sb(struct file_system_type *fs_type,
480 if (rc) { 481 if (rc) {
481 up_write(&sb->s_umount); 482 up_write(&sb->s_umount);
482 deactivate_super(sb); 483 deactivate_super(sb);
483 return ERR_PTR(rc); 484 return rc;
484 } 485 }
485 sb->s_flags |= MS_ACTIVE; 486 sb->s_flags |= MS_ACTIVE;
486 return sb; 487 return simple_set_mnt(mnt, sb);
487} 488}
488 489
489static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov, 490static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov,