diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 08:41:41 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 13:07:53 -0400 |
commit | 816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch) | |
tree | 421fa29aedff988e392f92780637553e275d37a0 /fs/cifs/cifsfs.c | |
parent | 70ac4385a13f78bc478f26d317511893741b05bd (diff) | |
parent | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
fs/nfs/inode.c
fs/super.c
Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch
'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 13 |
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 | ||
168 | static int | 168 | static int |
169 | cifs_statfs(struct super_block *sb, struct kstatfs *buf) | 169 | cifs_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 | ||
465 | static struct super_block * | 466 | static int |
466 | cifs_get_sb(struct file_system_type *fs_type, | 467 | cifs_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 | ||
489 | static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov, | 490 | static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov, |