diff options
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r-- | fs/hugetlbfs/inode.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index a1cb8fd2289b..47789292a582 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -4,11 +4,11 @@ | |||
4 | * Nadia Yvette Chambers, 2002 | 4 | * Nadia Yvette Chambers, 2002 |
5 | * | 5 | * |
6 | * Copyright (C) 2002 Linus Torvalds. | 6 | * Copyright (C) 2002 Linus Torvalds. |
7 | * License: GPL | ||
7 | */ | 8 | */ |
8 | 9 | ||
9 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
10 | 11 | ||
11 | #include <linux/module.h> | ||
12 | #include <linux/thread_info.h> | 12 | #include <linux/thread_info.h> |
13 | #include <asm/current.h> | 13 | #include <asm/current.h> |
14 | #include <linux/sched.h> /* remove ASAP */ | 14 | #include <linux/sched.h> /* remove ASAP */ |
@@ -1202,7 +1202,6 @@ static struct file_system_type hugetlbfs_fs_type = { | |||
1202 | .mount = hugetlbfs_mount, | 1202 | .mount = hugetlbfs_mount, |
1203 | .kill_sb = kill_litter_super, | 1203 | .kill_sb = kill_litter_super, |
1204 | }; | 1204 | }; |
1205 | MODULE_ALIAS_FS("hugetlbfs"); | ||
1206 | 1205 | ||
1207 | static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE]; | 1206 | static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE]; |
1208 | 1207 | ||
@@ -1356,26 +1355,4 @@ static int __init init_hugetlbfs_fs(void) | |||
1356 | out2: | 1355 | out2: |
1357 | return error; | 1356 | return error; |
1358 | } | 1357 | } |
1359 | 1358 | fs_initcall(init_hugetlbfs_fs) | |
1360 | static void __exit exit_hugetlbfs_fs(void) | ||
1361 | { | ||
1362 | struct hstate *h; | ||
1363 | int i; | ||
1364 | |||
1365 | |||
1366 | /* | ||
1367 | * Make sure all delayed rcu free inodes are flushed before we | ||
1368 | * destroy cache. | ||
1369 | */ | ||
1370 | rcu_barrier(); | ||
1371 | kmem_cache_destroy(hugetlbfs_inode_cachep); | ||
1372 | i = 0; | ||
1373 | for_each_hstate(h) | ||
1374 | kern_unmount(hugetlbfs_vfsmount[i++]); | ||
1375 | unregister_filesystem(&hugetlbfs_fs_type); | ||
1376 | } | ||
1377 | |||
1378 | module_init(init_hugetlbfs_fs) | ||
1379 | module_exit(exit_hugetlbfs_fs) | ||
1380 | |||
1381 | MODULE_LICENSE("GPL"); | ||