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'
This commit is contained in:
@@ -166,8 +166,9 @@ cifs_put_super(struct super_block *sb)
|
||||
}
|
||||
|
||||
static int
|
||||
cifs_statfs(struct super_block *sb, struct kstatfs *buf)
|
||||
cifs_statfs(struct dentry *dentry, struct kstatfs *buf)
|
||||
{
|
||||
struct super_block *sb = dentry->d_sb;
|
||||
int xid;
|
||||
int rc = -EOPNOTSUPP;
|
||||
struct cifs_sb_info *cifs_sb;
|
||||
@@ -462,9 +463,9 @@ struct super_operations cifs_super_ops = {
|
||||
.remount_fs = cifs_remount,
|
||||
};
|
||||
|
||||
static struct super_block *
|
||||
static int
|
||||
cifs_get_sb(struct file_system_type *fs_type,
|
||||
int flags, const char *dev_name, void *data)
|
||||
int flags, const char *dev_name, void *data, struct vfsmount *mnt)
|
||||
{
|
||||
int rc;
|
||||
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,
|
||||
cFYI(1, ("Devname: %s flags: %d ", dev_name, flags));
|
||||
|
||||
if (IS_ERR(sb))
|
||||
return sb;
|
||||
return PTR_ERR(sb);
|
||||
|
||||
sb->s_flags = flags;
|
||||
|
||||
@@ -480,10 +481,10 @@ cifs_get_sb(struct file_system_type *fs_type,
|
||||
if (rc) {
|
||||
up_write(&sb->s_umount);
|
||||
deactivate_super(sb);
|
||||
return ERR_PTR(rc);
|
||||
return rc;
|
||||
}
|
||||
sb->s_flags |= MS_ACTIVE;
|
||||
return sb;
|
||||
return simple_set_mnt(mnt, sb);
|
||||
}
|
||||
|
||||
static ssize_t cifs_file_writev(struct file *file, const struct iovec *iov,
|
||||
|
Reference in New Issue
Block a user