Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1511533
| From | zhong jiang <zhongjiang@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted |
| Date | 2016-10-29 09:50 +0200 |
| Message-ID | <sxwyS-3dk-7@gated-at.bofh.it> (permalink) |
| References | <sxv9L-2rp-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016/10/29 14:08, zhongjiang wrote:
> From: zhong jiang <zhongjiang@huawei.com>
>
> Since 'commit 3e89e1c5ea84 ("hugetlb: make mm and fs code explicitly non-modular")'
> bring in the mainline. mount hugetlbfs will result in the following issue.
>
> mount: unknown filesystme type 'hugetlbfs'
>
> because previous patch remove the module_alias_fs, when we mount the fs type,
> the caller get_fs_type can not find the filesystem.
>
> The patch just recover the module_alias_fs to identify the hugetlbfs.
>
> Signed-off-by: zhong jiang <zhongjiang@huawei.com>
> ---
> fs/hugetlbfs/inode.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
> index 4fb7b10..b63e7de 100644
> --- a/fs/hugetlbfs/inode.c
> +++ b/fs/hugetlbfs/inode.c
> @@ -35,6 +35,7 @@
> #include <linux/security.h>
> #include <linux/magic.h>
> #include <linux/migrate.h>
> +#include <linux/module.h>
> #include <linux/uio.h>
>
> #include <asm/uaccess.h>
> @@ -1209,6 +1210,7 @@ static struct dentry *hugetlbfs_mount(struct file_system_type *fs_type,
> .mount = hugetlbfs_mount,
> .kill_sb = kill_litter_super,
> };
> +MODULE_ALIAS_FS("hugetlbfs");
>
> static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
>
please ignore the patch, It have been fixed.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted zhongjiang <zhongjiang@huawei.com> - 2016-10-29 08:20 +0200
Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted zhong jiang <zhongjiang@huawei.com> - 2016-10-29 09:50 +0200
Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted Andrew Morton <akpm@linux-foundation.org> - 2016-11-03 20:20 +0100
Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-11-03 22:00 +0100
Re: [RFC PATCH] hugetlbfs: fix the hugetlbfs can not be mounted zhong jiang <zhongjiang@huawei.com> - 2016-11-04 03:30 +0100
csiph-web