diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-05-12 21:05:59 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-05-12 21:05:59 +0000 |
commit | ba2dacab305c598cd4c34a604f8e276bf5bab5ff (patch) | |
tree | 78670a0139bf4d5ace617b29b7eba82bbc74d602 /fs/proc/procfs_syms.c | |
parent | b77bf69998121e689c5e86cc5630d39a0a9ee6ca (diff) |
Merge with Linux 2.3.99-pre7 and various other bits.
Diffstat (limited to 'fs/proc/procfs_syms.c')
-rw-r--r-- | fs/proc/procfs_syms.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/proc/procfs_syms.c b/fs/proc/procfs_syms.c index 097e83468..e6d1cf74c 100644 --- a/fs/proc/procfs_syms.c +++ b/fs/proc/procfs_syms.c @@ -20,16 +20,24 @@ EXPORT_SYMBOL(proc_net); EXPORT_SYMBOL(proc_bus); EXPORT_SYMBOL(proc_root_driver); -static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, 0); +static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, FS_SINGLE); static int __init init_proc_fs(void) { - return register_filesystem(&proc_fs_type); + int err = register_filesystem(&proc_fs_type); + if (!err) { + proc_mnt = kern_mount(&proc_fs_type); + err = PTR_ERR(proc_mnt); + if (!IS_ERR(proc_mnt)) + err = 0; + } + return err; } static void __exit exit_proc_fs(void) { unregister_filesystem(&proc_fs_type); + kern_umount(proc_mnt); } module_init(init_proc_fs) |