2 * hugetlbpage-backed filesystem. Based on ramfs.
6 * Copyright (C) 2002 Linus Torvalds.
9 #include <linux/module.h>
10 #include <linux/thread_info.h>
11 #include <asm/current.h>
12 #include <linux/sched.h> /* remove ASAP */
14 #include <linux/mount.h>
15 #include <linux/file.h>
16 #include <linux/writeback.h>
17 #include <linux/pagemap.h>
18 #include <linux/highmem.h>
19 #include <linux/init.h>
20 #include <linux/string.h>
21 #include <linux/capability.h>
22 #include <linux/backing-dev.h>
23 #include <linux/hugetlb.h>
24 #include <linux/pagevec.h>
25 #include <linux/mman.h>
26 #include <linux/quotaops.h>
27 #include <linux/slab.h>
28 #include <linux/dnotify.h>
29 #include <linux/statfs.h>
30 #include <linux/security.h>
32 #include <asm/uaccess.h>
34 /* some random number */
35 #define HUGETLBFS_MAGIC 0x958458f6
37 static const struct super_operations hugetlbfs_ops
;
38 static const struct address_space_operations hugetlbfs_aops
;
39 const struct file_operations hugetlbfs_file_operations
;
40 static const struct inode_operations hugetlbfs_dir_inode_operations
;
41 static const struct inode_operations hugetlbfs_inode_operations
;
43 static struct backing_dev_info hugetlbfs_backing_dev_info
= {
44 .ra_pages
= 0, /* No readahead */
45 .capabilities
= BDI_CAP_NO_ACCT_DIRTY
| BDI_CAP_NO_WRITEBACK
,
48 int sysctl_hugetlb_shm_group
;
50 static void huge_pagevec_release(struct pagevec
*pvec
)
54 for (i
= 0; i
< pagevec_count(pvec
); ++i
)
55 put_page(pvec
->pages
[i
]);
60 static int hugetlbfs_file_mmap(struct file
*file
, struct vm_area_struct
*vma
)
62 struct inode
*inode
= file
->f_path
.dentry
->d_inode
;
67 * vma alignment has already been checked by prepare_hugepage_range.
68 * If you add any error returns here, do so after setting VM_HUGETLB,
69 * so is_vm_hugetlb_page tests below unmap_region go the right way
70 * when do_mmap_pgoff unwinds (may be important on powerpc and ia64).
72 vma
->vm_flags
|= VM_HUGETLB
| VM_RESERVED
;
73 vma
->vm_ops
= &hugetlb_vm_ops
;
75 vma_len
= (loff_t
)(vma
->vm_end
- vma
->vm_start
);
77 mutex_lock(&inode
->i_mutex
);
81 len
= vma_len
+ ((loff_t
)vma
->vm_pgoff
<< PAGE_SHIFT
);
83 if (vma
->vm_flags
& VM_MAYSHARE
&&
84 hugetlb_reserve_pages(inode
, vma
->vm_pgoff
>> (HPAGE_SHIFT
-PAGE_SHIFT
),
89 hugetlb_prefault_arch_hook(vma
->vm_mm
);
90 if (vma
->vm_flags
& VM_WRITE
&& inode
->i_size
< len
)
93 mutex_unlock(&inode
->i_mutex
);
99 * Called under down_write(mmap_sem).
102 #ifndef HAVE_ARCH_HUGETLB_UNMAPPED_AREA
104 hugetlb_get_unmapped_area(struct file
*file
, unsigned long addr
,
105 unsigned long len
, unsigned long pgoff
, unsigned long flags
)
107 struct mm_struct
*mm
= current
->mm
;
108 struct vm_area_struct
*vma
;
109 unsigned long start_addr
;
111 if (len
& ~HPAGE_MASK
)
116 if (flags
& MAP_FIXED
) {
117 if (prepare_hugepage_range(addr
, len
, pgoff
))
123 addr
= ALIGN(addr
, HPAGE_SIZE
);
124 vma
= find_vma(mm
, addr
);
125 if (TASK_SIZE
- len
>= addr
&&
126 (!vma
|| addr
+ len
<= vma
->vm_start
))
130 start_addr
= mm
->free_area_cache
;
132 if (len
<= mm
->cached_hole_size
)
133 start_addr
= TASK_UNMAPPED_BASE
;
136 addr
= ALIGN(start_addr
, HPAGE_SIZE
);
138 for (vma
= find_vma(mm
, addr
); ; vma
= vma
->vm_next
) {
139 /* At this point: (!vma || addr < vma->vm_end). */
140 if (TASK_SIZE
- len
< addr
) {
142 * Start a new search - just in case we missed
145 if (start_addr
!= TASK_UNMAPPED_BASE
) {
146 start_addr
= TASK_UNMAPPED_BASE
;
152 if (!vma
|| addr
+ len
<= vma
->vm_start
)
154 addr
= ALIGN(vma
->vm_end
, HPAGE_SIZE
);
160 * Read a page. Again trivial. If it didn't already exist
161 * in the page cache, it is zero-filled.
163 static int hugetlbfs_readpage(struct file
*file
, struct page
* page
)
169 static int hugetlbfs_prepare_write(struct file
*file
,
170 struct page
*page
, unsigned offset
, unsigned to
)
175 static int hugetlbfs_commit_write(struct file
*file
,
176 struct page
*page
, unsigned offset
, unsigned to
)
181 static void truncate_huge_page(struct page
*page
)
183 cancel_dirty_page(page
, /* No IO accounting for huge pages? */0);
184 ClearPageUptodate(page
);
185 remove_from_page_cache(page
);
189 static void truncate_hugepages(struct inode
*inode
, loff_t lstart
)
191 struct address_space
*mapping
= &inode
->i_data
;
192 const pgoff_t start
= lstart
>> HPAGE_SHIFT
;
197 pagevec_init(&pvec
, 0);
200 if (!pagevec_lookup(&pvec
, mapping
, next
, PAGEVEC_SIZE
)) {
207 for (i
= 0; i
< pagevec_count(&pvec
); ++i
) {
208 struct page
*page
= pvec
.pages
[i
];
211 if (page
->index
> next
)
214 truncate_huge_page(page
);
216 hugetlb_put_quota(mapping
);
219 huge_pagevec_release(&pvec
);
221 BUG_ON(!lstart
&& mapping
->nrpages
);
222 hugetlb_unreserve_pages(inode
, start
, freed
);
225 static void hugetlbfs_delete_inode(struct inode
*inode
)
227 truncate_hugepages(inode
, 0);
231 static void hugetlbfs_forget_inode(struct inode
*inode
) __releases(inode_lock
)
233 struct super_block
*sb
= inode
->i_sb
;
235 if (!hlist_unhashed(&inode
->i_hash
)) {
236 if (!(inode
->i_state
& (I_DIRTY
|I_LOCK
)))
237 list_move(&inode
->i_list
, &inode_unused
);
238 inodes_stat
.nr_unused
++;
239 if (!sb
|| (sb
->s_flags
& MS_ACTIVE
)) {
240 spin_unlock(&inode_lock
);
243 inode
->i_state
|= I_WILL_FREE
;
244 spin_unlock(&inode_lock
);
246 * write_inode_now is a noop as we set BDI_CAP_NO_WRITEBACK
247 * in our backing_dev_info.
249 write_inode_now(inode
, 1);
250 spin_lock(&inode_lock
);
251 inode
->i_state
&= ~I_WILL_FREE
;
252 inodes_stat
.nr_unused
--;
253 hlist_del_init(&inode
->i_hash
);
255 list_del_init(&inode
->i_list
);
256 list_del_init(&inode
->i_sb_list
);
257 inode
->i_state
|= I_FREEING
;
258 inodes_stat
.nr_inodes
--;
259 spin_unlock(&inode_lock
);
260 truncate_hugepages(inode
, 0);
262 destroy_inode(inode
);
265 static void hugetlbfs_drop_inode(struct inode
*inode
)
268 generic_delete_inode(inode
);
270 hugetlbfs_forget_inode(inode
);
274 hugetlb_vmtruncate_list(struct prio_tree_root
*root
, pgoff_t pgoff
)
276 struct vm_area_struct
*vma
;
277 struct prio_tree_iter iter
;
279 vma_prio_tree_foreach(vma
, &iter
, root
, pgoff
, ULONG_MAX
) {
280 unsigned long v_offset
;
283 * Can the expression below overflow on 32-bit arches?
284 * No, because the prio_tree returns us only those vmas
285 * which overlap the truncated area starting at pgoff,
286 * and no vma on a 32-bit arch can span beyond the 4GB.
288 if (vma
->vm_pgoff
< pgoff
)
289 v_offset
= (pgoff
- vma
->vm_pgoff
) << PAGE_SHIFT
;
293 __unmap_hugepage_range(vma
,
294 vma
->vm_start
+ v_offset
, vma
->vm_end
);
299 * Expanding truncates are not allowed.
301 static int hugetlb_vmtruncate(struct inode
*inode
, loff_t offset
)
304 struct address_space
*mapping
= inode
->i_mapping
;
306 if (offset
> inode
->i_size
)
309 BUG_ON(offset
& ~HPAGE_MASK
);
310 pgoff
= offset
>> PAGE_SHIFT
;
312 inode
->i_size
= offset
;
313 spin_lock(&mapping
->i_mmap_lock
);
314 if (!prio_tree_empty(&mapping
->i_mmap
))
315 hugetlb_vmtruncate_list(&mapping
->i_mmap
, pgoff
);
316 spin_unlock(&mapping
->i_mmap_lock
);
317 truncate_hugepages(inode
, offset
);
321 static int hugetlbfs_setattr(struct dentry
*dentry
, struct iattr
*attr
)
323 struct inode
*inode
= dentry
->d_inode
;
325 unsigned int ia_valid
= attr
->ia_valid
;
329 error
= inode_change_ok(inode
, attr
);
333 if (ia_valid
& ATTR_SIZE
) {
335 if (!(attr
->ia_size
& ~HPAGE_MASK
))
336 error
= hugetlb_vmtruncate(inode
, attr
->ia_size
);
339 attr
->ia_valid
&= ~ATTR_SIZE
;
341 error
= inode_setattr(inode
, attr
);
346 static struct inode
*hugetlbfs_get_inode(struct super_block
*sb
, uid_t uid
,
347 gid_t gid
, int mode
, dev_t dev
)
351 inode
= new_inode(sb
);
353 struct hugetlbfs_inode_info
*info
;
354 inode
->i_mode
= mode
;
358 inode
->i_mapping
->a_ops
= &hugetlbfs_aops
;
359 inode
->i_mapping
->backing_dev_info
=&hugetlbfs_backing_dev_info
;
360 inode
->i_atime
= inode
->i_mtime
= inode
->i_ctime
= CURRENT_TIME
;
361 INIT_LIST_HEAD(&inode
->i_mapping
->private_list
);
362 info
= HUGETLBFS_I(inode
);
363 mpol_shared_policy_init(&info
->policy
, MPOL_DEFAULT
, NULL
);
364 switch (mode
& S_IFMT
) {
366 init_special_inode(inode
, mode
, dev
);
369 inode
->i_op
= &hugetlbfs_inode_operations
;
370 inode
->i_fop
= &hugetlbfs_file_operations
;
373 inode
->i_op
= &hugetlbfs_dir_inode_operations
;
374 inode
->i_fop
= &simple_dir_operations
;
376 /* directory inodes start off with i_nlink == 2 (for "." entry) */
380 inode
->i_op
= &page_symlink_inode_operations
;
388 * File creation. Allocate an inode, and we're done..
390 static int hugetlbfs_mknod(struct inode
*dir
,
391 struct dentry
*dentry
, int mode
, dev_t dev
)
397 if (dir
->i_mode
& S_ISGID
) {
402 gid
= current
->fsgid
;
404 inode
= hugetlbfs_get_inode(dir
->i_sb
, current
->fsuid
, gid
, mode
, dev
);
406 dir
->i_ctime
= dir
->i_mtime
= CURRENT_TIME
;
407 d_instantiate(dentry
, inode
);
408 dget(dentry
); /* Extra count - pin the dentry in core */
414 static int hugetlbfs_mkdir(struct inode
*dir
, struct dentry
*dentry
, int mode
)
416 int retval
= hugetlbfs_mknod(dir
, dentry
, mode
| S_IFDIR
, 0);
422 static int hugetlbfs_create(struct inode
*dir
, struct dentry
*dentry
, int mode
, struct nameidata
*nd
)
424 return hugetlbfs_mknod(dir
, dentry
, mode
| S_IFREG
, 0);
427 static int hugetlbfs_symlink(struct inode
*dir
,
428 struct dentry
*dentry
, const char *symname
)
434 if (dir
->i_mode
& S_ISGID
)
437 gid
= current
->fsgid
;
439 inode
= hugetlbfs_get_inode(dir
->i_sb
, current
->fsuid
,
440 gid
, S_IFLNK
|S_IRWXUGO
, 0);
442 int l
= strlen(symname
)+1;
443 error
= page_symlink(inode
, symname
, l
);
445 d_instantiate(dentry
, inode
);
450 dir
->i_ctime
= dir
->i_mtime
= CURRENT_TIME
;
456 * mark the head page dirty
458 static int hugetlbfs_set_page_dirty(struct page
*page
)
460 struct page
*head
= compound_head(page
);
466 static int hugetlbfs_statfs(struct dentry
*dentry
, struct kstatfs
*buf
)
468 struct hugetlbfs_sb_info
*sbinfo
= HUGETLBFS_SB(dentry
->d_sb
);
470 buf
->f_type
= HUGETLBFS_MAGIC
;
471 buf
->f_bsize
= HPAGE_SIZE
;
473 spin_lock(&sbinfo
->stat_lock
);
474 /* If no limits set, just report 0 for max/free/used
475 * blocks, like simple_statfs() */
476 if (sbinfo
->max_blocks
>= 0) {
477 buf
->f_blocks
= sbinfo
->max_blocks
;
478 buf
->f_bavail
= buf
->f_bfree
= sbinfo
->free_blocks
;
479 buf
->f_files
= sbinfo
->max_inodes
;
480 buf
->f_ffree
= sbinfo
->free_inodes
;
482 spin_unlock(&sbinfo
->stat_lock
);
484 buf
->f_namelen
= NAME_MAX
;
488 static void hugetlbfs_put_super(struct super_block
*sb
)
490 struct hugetlbfs_sb_info
*sbi
= HUGETLBFS_SB(sb
);
493 sb
->s_fs_info
= NULL
;
498 static inline int hugetlbfs_dec_free_inodes(struct hugetlbfs_sb_info
*sbinfo
)
500 if (sbinfo
->free_inodes
>= 0) {
501 spin_lock(&sbinfo
->stat_lock
);
502 if (unlikely(!sbinfo
->free_inodes
)) {
503 spin_unlock(&sbinfo
->stat_lock
);
506 sbinfo
->free_inodes
--;
507 spin_unlock(&sbinfo
->stat_lock
);
513 static void hugetlbfs_inc_free_inodes(struct hugetlbfs_sb_info
*sbinfo
)
515 if (sbinfo
->free_inodes
>= 0) {
516 spin_lock(&sbinfo
->stat_lock
);
517 sbinfo
->free_inodes
++;
518 spin_unlock(&sbinfo
->stat_lock
);
523 static struct kmem_cache
*hugetlbfs_inode_cachep
;
525 static struct inode
*hugetlbfs_alloc_inode(struct super_block
*sb
)
527 struct hugetlbfs_sb_info
*sbinfo
= HUGETLBFS_SB(sb
);
528 struct hugetlbfs_inode_info
*p
;
530 if (unlikely(!hugetlbfs_dec_free_inodes(sbinfo
)))
532 p
= kmem_cache_alloc(hugetlbfs_inode_cachep
, GFP_KERNEL
);
534 hugetlbfs_inc_free_inodes(sbinfo
);
537 return &p
->vfs_inode
;
540 static void hugetlbfs_destroy_inode(struct inode
*inode
)
542 hugetlbfs_inc_free_inodes(HUGETLBFS_SB(inode
->i_sb
));
543 mpol_free_shared_policy(&HUGETLBFS_I(inode
)->policy
);
544 kmem_cache_free(hugetlbfs_inode_cachep
, HUGETLBFS_I(inode
));
547 static const struct address_space_operations hugetlbfs_aops
= {
548 .readpage
= hugetlbfs_readpage
,
549 .prepare_write
= hugetlbfs_prepare_write
,
550 .commit_write
= hugetlbfs_commit_write
,
551 .set_page_dirty
= hugetlbfs_set_page_dirty
,
555 static void init_once(void *foo
, struct kmem_cache
*cachep
, unsigned long flags
)
557 struct hugetlbfs_inode_info
*ei
= (struct hugetlbfs_inode_info
*)foo
;
559 inode_init_once(&ei
->vfs_inode
);
562 const struct file_operations hugetlbfs_file_operations
= {
563 .mmap
= hugetlbfs_file_mmap
,
564 .fsync
= simple_sync_file
,
565 .get_unmapped_area
= hugetlb_get_unmapped_area
,
568 static const struct inode_operations hugetlbfs_dir_inode_operations
= {
569 .create
= hugetlbfs_create
,
570 .lookup
= simple_lookup
,
572 .unlink
= simple_unlink
,
573 .symlink
= hugetlbfs_symlink
,
574 .mkdir
= hugetlbfs_mkdir
,
575 .rmdir
= simple_rmdir
,
576 .mknod
= hugetlbfs_mknod
,
577 .rename
= simple_rename
,
578 .setattr
= hugetlbfs_setattr
,
581 static const struct inode_operations hugetlbfs_inode_operations
= {
582 .setattr
= hugetlbfs_setattr
,
585 static const struct super_operations hugetlbfs_ops
= {
586 .alloc_inode
= hugetlbfs_alloc_inode
,
587 .destroy_inode
= hugetlbfs_destroy_inode
,
588 .statfs
= hugetlbfs_statfs
,
589 .delete_inode
= hugetlbfs_delete_inode
,
590 .drop_inode
= hugetlbfs_drop_inode
,
591 .put_super
= hugetlbfs_put_super
,
595 hugetlbfs_parse_options(char *options
, struct hugetlbfs_config
*pconfig
)
597 char *opt
, *value
, *rest
;
601 while ((opt
= strsep(&options
, ",")) != NULL
) {
605 value
= strchr(opt
, '=');
606 if (!value
|| !*value
)
611 if (!strcmp(opt
, "uid"))
612 pconfig
->uid
= simple_strtoul(value
, &value
, 0);
613 else if (!strcmp(opt
, "gid"))
614 pconfig
->gid
= simple_strtoul(value
, &value
, 0);
615 else if (!strcmp(opt
, "mode"))
616 pconfig
->mode
= simple_strtoul(value
,&value
,0) & 0777U;
617 else if (!strcmp(opt
, "size")) {
618 unsigned long long size
= memparse(value
, &rest
);
620 size
<<= HPAGE_SHIFT
;
621 size
*= max_huge_pages
;
625 pconfig
->nr_blocks
= (size
>> HPAGE_SHIFT
);
627 } else if (!strcmp(opt
,"nr_inodes")) {
628 pconfig
->nr_inodes
= memparse(value
, &rest
);
640 hugetlbfs_fill_super(struct super_block
*sb
, void *data
, int silent
)
642 struct inode
* inode
;
643 struct dentry
* root
;
645 struct hugetlbfs_config config
;
646 struct hugetlbfs_sb_info
*sbinfo
;
648 config
.nr_blocks
= -1; /* No limit on size by default */
649 config
.nr_inodes
= -1; /* No limit on number of inodes by default */
650 config
.uid
= current
->fsuid
;
651 config
.gid
= current
->fsgid
;
653 ret
= hugetlbfs_parse_options(data
, &config
);
658 sbinfo
= kmalloc(sizeof(struct hugetlbfs_sb_info
), GFP_KERNEL
);
661 sb
->s_fs_info
= sbinfo
;
662 spin_lock_init(&sbinfo
->stat_lock
);
663 sbinfo
->max_blocks
= config
.nr_blocks
;
664 sbinfo
->free_blocks
= config
.nr_blocks
;
665 sbinfo
->max_inodes
= config
.nr_inodes
;
666 sbinfo
->free_inodes
= config
.nr_inodes
;
667 sb
->s_maxbytes
= MAX_LFS_FILESIZE
;
668 sb
->s_blocksize
= HPAGE_SIZE
;
669 sb
->s_blocksize_bits
= HPAGE_SHIFT
;
670 sb
->s_magic
= HUGETLBFS_MAGIC
;
671 sb
->s_op
= &hugetlbfs_ops
;
673 inode
= hugetlbfs_get_inode(sb
, config
.uid
, config
.gid
,
674 S_IFDIR
| config
.mode
, 0);
678 root
= d_alloc_root(inode
);
690 int hugetlb_get_quota(struct address_space
*mapping
)
693 struct hugetlbfs_sb_info
*sbinfo
= HUGETLBFS_SB(mapping
->host
->i_sb
);
695 if (sbinfo
->free_blocks
> -1) {
696 spin_lock(&sbinfo
->stat_lock
);
697 if (sbinfo
->free_blocks
> 0)
698 sbinfo
->free_blocks
--;
701 spin_unlock(&sbinfo
->stat_lock
);
707 void hugetlb_put_quota(struct address_space
*mapping
)
709 struct hugetlbfs_sb_info
*sbinfo
= HUGETLBFS_SB(mapping
->host
->i_sb
);
711 if (sbinfo
->free_blocks
> -1) {
712 spin_lock(&sbinfo
->stat_lock
);
713 sbinfo
->free_blocks
++;
714 spin_unlock(&sbinfo
->stat_lock
);
718 static int hugetlbfs_get_sb(struct file_system_type
*fs_type
,
719 int flags
, const char *dev_name
, void *data
, struct vfsmount
*mnt
)
721 return get_sb_nodev(fs_type
, flags
, data
, hugetlbfs_fill_super
, mnt
);
724 static struct file_system_type hugetlbfs_fs_type
= {
726 .get_sb
= hugetlbfs_get_sb
,
727 .kill_sb
= kill_litter_super
,
730 static struct vfsmount
*hugetlbfs_vfsmount
;
732 static int can_do_hugetlb_shm(void)
734 return likely(capable(CAP_IPC_LOCK
) ||
735 in_group_p(sysctl_hugetlb_shm_group
) ||
739 struct file
*hugetlb_zero_setup(size_t size
)
744 struct dentry
*dentry
, *root
;
745 struct qstr quick_string
;
747 static atomic_t counter
;
749 if (!hugetlbfs_vfsmount
)
750 return ERR_PTR(-ENOENT
);
752 if (!can_do_hugetlb_shm())
753 return ERR_PTR(-EPERM
);
755 if (!user_shm_lock(size
, current
->user
))
756 return ERR_PTR(-ENOMEM
);
758 root
= hugetlbfs_vfsmount
->mnt_root
;
759 snprintf(buf
, 16, "%u", atomic_inc_return(&counter
));
760 quick_string
.name
= buf
;
761 quick_string
.len
= strlen(quick_string
.name
);
762 quick_string
.hash
= 0;
763 dentry
= d_alloc(root
, &quick_string
);
768 file
= get_empty_filp();
773 inode
= hugetlbfs_get_inode(root
->d_sb
, current
->fsuid
,
774 current
->fsgid
, S_IFREG
| S_IRWXUGO
, 0);
779 if (hugetlb_reserve_pages(inode
, 0, size
>> HPAGE_SHIFT
))
782 d_instantiate(dentry
, inode
);
783 inode
->i_size
= size
;
785 file
->f_path
.mnt
= mntget(hugetlbfs_vfsmount
);
786 file
->f_path
.dentry
= dentry
;
787 file
->f_mapping
= inode
->i_mapping
;
788 file
->f_op
= &hugetlbfs_file_operations
;
789 file
->f_mode
= FMODE_WRITE
| FMODE_READ
;
799 user_shm_unlock(size
, current
->user
);
800 return ERR_PTR(error
);
803 static int __init
init_hugetlbfs_fs(void)
806 struct vfsmount
*vfsmount
;
808 hugetlbfs_inode_cachep
= kmem_cache_create("hugetlbfs_inode_cache",
809 sizeof(struct hugetlbfs_inode_info
),
810 0, 0, init_once
, NULL
);
811 if (hugetlbfs_inode_cachep
== NULL
)
814 error
= register_filesystem(&hugetlbfs_fs_type
);
818 vfsmount
= kern_mount(&hugetlbfs_fs_type
);
820 if (!IS_ERR(vfsmount
)) {
821 hugetlbfs_vfsmount
= vfsmount
;
825 error
= PTR_ERR(vfsmount
);
829 kmem_cache_destroy(hugetlbfs_inode_cachep
);
833 static void __exit
exit_hugetlbfs_fs(void)
835 kmem_cache_destroy(hugetlbfs_inode_cachep
);
836 unregister_filesystem(&hugetlbfs_fs_type
);
839 module_init(init_hugetlbfs_fs
)
840 module_exit(exit_hugetlbfs_fs
)
842 MODULE_LICENSE("GPL");