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 fb7c11c2c913..f2e285457bee 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;
@@ -460,9 +461,9 @@ struct super_operations cifs_super_ops = {
460 .remount_fs = cifs_remount, 461 .remount_fs = cifs_remount,
461}; 462};
462 463
463static struct super_block * 464static int
464cifs_get_sb(struct file_system_type *fs_type, 465cifs_get_sb(struct file_system_type *fs_type,
465 int flags, const char *dev_name, void *data) 466 int flags, const char *dev_name, void *data, struct vfsmount *mnt)
466{ 467{
467 int rc; 468 int rc;
468 struct super_block *sb = sget(fs_type, NULL, set_anon_super, NULL); 469 struct super_block *sb = sget(fs_type, NULL, set_anon_super, NULL);
@@ -470,7 +471,7 @@ cifs_get_sb(struct file_system_type *fs_type,
470 cFYI(1, ("Devname: %s flags: %d ", dev_name, flags)); 471 cFYI(1, ("Devname: %s flags: %d ", dev_name, flags));
471 472
472 if (IS_ERR(sb)) 473 if (IS_ERR(sb))
473 return sb; 474 return PTR_ERR(sb);
474 475
475 sb->s_flags = flags; 476 sb->s_flags = flags;
476 477
@@ -478,10 +479,10 @@ cifs_get_sb(struct file_system_type *fs_type,
478 if (rc) { 479 if (rc) {
479 up_write(&sb->s_umount); 480 up_write(&sb->s_umount);
480 deactivate_super(sb); 481 deactivate_super(sb);
481 return ERR_PTR(rc); 482 return rc;
482 } 483 }
483 sb->s_flags |= MS_ACTIVE; 484 sb->s_flags |= MS_ACTIVE;
484 return sb; 485 return simple_set_mnt(mnt, sb);
485} 486}
486 487
487static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov, 488static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov,