xfs: fix type usage
[linux/fpc-iii.git] / fs / autofs4 / init.c
blob8cf0e63389ae34c2b86716a674974727629fc63e
1 /*
2 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
4 * This file is part of the Linux kernel and is made available under
5 * the terms of the GNU General Public License, version 2, or at your
6 * option, any later version, incorporated herein by reference.
7 */
9 #include <linux/module.h>
10 #include <linux/init.h>
11 #include "autofs_i.h"
13 static struct dentry *autofs_mount(struct file_system_type *fs_type,
14 int flags, const char *dev_name, void *data)
16 return mount_nodev(fs_type, flags, data, autofs4_fill_super);
19 static struct file_system_type autofs_fs_type = {
20 .owner = THIS_MODULE,
21 .name = "autofs",
22 .mount = autofs_mount,
23 .kill_sb = autofs4_kill_sb,
25 MODULE_ALIAS_FS("autofs");
27 static int __init init_autofs4_fs(void)
29 int err;
31 autofs_dev_ioctl_init();
33 err = register_filesystem(&autofs_fs_type);
34 if (err)
35 autofs_dev_ioctl_exit();
37 return err;
40 static void __exit exit_autofs4_fs(void)
42 autofs_dev_ioctl_exit();
43 unregister_filesystem(&autofs_fs_type);
46 module_init(init_autofs4_fs)
47 module_exit(exit_autofs4_fs)
48 MODULE_LICENSE("GPL");