From 64b17fd974a1b6ce42655d44bf5a30883736e6da Mon Sep 17 00:00:00 2001 From: Harro Haan Date: Tue, 4 Oct 2011 16:56:08 +0200 Subject: [PATCH] accessfs: move get_sb to mount Accessfs did not build anymore for recent kernels, because there have been a few vfs changes. For details see: https://lkml.org/lkml/2011/4/24/65 After reading the thread "vfs: where is get_sb_single()?" is was easy to fix: https://lkml.org/lkml/2011/5/25/217 This patch has been tested on linux-3.0.4 Signed-off-by: Harro Haan --- fs/accessfs/inode.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/accessfs/inode.c b/fs/accessfs/inode.c index 832867a..a2247e2 100644 --- a/fs/accessfs/inode.c +++ b/fs/accessfs/inode.c @@ -356,11 +356,10 @@ static int accessfs_fill_super(struct super_block *sb, void *data, int silent) return 0; } -static int accessfs_get_sb(struct file_system_type *fs_type, - int flags, const char *dev_name, - void *data, struct vfsmount *mnt) +static struct dentry *accessfs_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) { - return get_sb_single(fs_type, flags, data, accessfs_fill_super, mnt); + return mount_single(fs_type, flags, data, accessfs_fill_super); } int accessfs_permitted(struct access_attr *p, int mask) @@ -401,7 +400,7 @@ void accessfs_unregister(struct accessfs_direntry *dir, const char *name) static struct file_system_type accessfs_fs_type = { .owner = THIS_MODULE, .name = "accessfs", - .get_sb = accessfs_get_sb, + .mount = accessfs_mount, .kill_sb = kill_anon_super, }; -- 1.7.0.4