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:
16
fs/libfs.c
16
fs/libfs.c
@@ -20,9 +20,9 @@ int simple_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int simple_statfs(struct super_block *sb, struct kstatfs *buf)
|
||||
int simple_statfs(struct dentry *dentry, struct kstatfs *buf)
|
||||
{
|
||||
buf->f_type = sb->s_magic;
|
||||
buf->f_type = dentry->d_sb->s_magic;
|
||||
buf->f_bsize = PAGE_CACHE_SIZE;
|
||||
buf->f_namelen = NAME_MAX;
|
||||
return 0;
|
||||
@@ -196,9 +196,9 @@ struct inode_operations simple_dir_inode_operations = {
|
||||
* Common helper for pseudo-filesystems (sockfs, pipefs, bdev - stuff that
|
||||
* will never be mountable)
|
||||
*/
|
||||
struct super_block *
|
||||
get_sb_pseudo(struct file_system_type *fs_type, char *name,
|
||||
struct super_operations *ops, unsigned long magic)
|
||||
int get_sb_pseudo(struct file_system_type *fs_type, char *name,
|
||||
struct super_operations *ops, unsigned long magic,
|
||||
struct vfsmount *mnt)
|
||||
{
|
||||
struct super_block *s = sget(fs_type, NULL, set_anon_super, NULL);
|
||||
static struct super_operations default_ops = {.statfs = simple_statfs};
|
||||
@@ -207,7 +207,7 @@ get_sb_pseudo(struct file_system_type *fs_type, char *name,
|
||||
struct qstr d_name = {.name = name, .len = strlen(name)};
|
||||
|
||||
if (IS_ERR(s))
|
||||
return s;
|
||||
return PTR_ERR(s);
|
||||
|
||||
s->s_flags = MS_NOUSER;
|
||||
s->s_maxbytes = ~0ULL;
|
||||
@@ -232,12 +232,12 @@ get_sb_pseudo(struct file_system_type *fs_type, char *name,
|
||||
d_instantiate(dentry, root);
|
||||
s->s_root = dentry;
|
||||
s->s_flags |= MS_ACTIVE;
|
||||
return s;
|
||||
return simple_set_mnt(mnt, s);
|
||||
|
||||
Enomem:
|
||||
up_write(&s->s_umount);
|
||||
deactivate_super(s);
|
||||
return ERR_PTR(-ENOMEM);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
|
||||
|
||||
Reference in New Issue
Block a user