X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=ipc%2Fmqueue.c;h=035f4399edbcb8fd277285ac283db95c4188f8d5;hb=28cb6ccd2c7e86b3a4db94c7062cd27937bed424;hp=3a61ffefe88472af269e0bc218d6f8eb2959a1c9;hpb=0851668fdd97e526b2a41f794b785c204dd3d3e0;p=net-next-2.6.git diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 3a61ffefe88..035f4399edb 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -211,13 +211,13 @@ out: return error; } -static int mqueue_get_sb(struct file_system_type *fs_type, +static struct dentry *mqueue_mount(struct file_system_type *fs_type, int flags, const char *dev_name, - void *data, struct vfsmount *mnt) + void *data) { if (!(flags & MS_KERNMOUNT)) data = current->nsproxy->ipc_ns; - return get_sb_ns(fs_type, flags, data, mqueue_fill_super, mnt); + return mount_ns(fs_type, flags, data, mqueue_fill_super); } static void init_once(void *foo) @@ -1232,7 +1232,7 @@ static const struct super_operations mqueue_super_ops = { static struct file_system_type mqueue_fs_type = { .name = "mqueue", - .get_sb = mqueue_get_sb, + .mount = mqueue_mount, .kill_sb = kill_litter_super, };