diff options
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r-- | fs/hugetlbfs/inode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 09ee07f02663..eee9487ae47f 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -734,6 +734,7 @@ static const struct super_operations hugetlbfs_ops = { | |||
734 | .delete_inode = hugetlbfs_delete_inode, | 734 | .delete_inode = hugetlbfs_delete_inode, |
735 | .drop_inode = hugetlbfs_drop_inode, | 735 | .drop_inode = hugetlbfs_drop_inode, |
736 | .put_super = hugetlbfs_put_super, | 736 | .put_super = hugetlbfs_put_super, |
737 | .show_options = generic_show_options, | ||
737 | }; | 738 | }; |
738 | 739 | ||
739 | static int | 740 | static int |
@@ -768,7 +769,7 @@ hugetlbfs_parse_options(char *options, struct hugetlbfs_config *pconfig) | |||
768 | case Opt_mode: | 769 | case Opt_mode: |
769 | if (match_octal(&args[0], &option)) | 770 | if (match_octal(&args[0], &option)) |
770 | goto bad_val; | 771 | goto bad_val; |
771 | pconfig->mode = option & 0777U; | 772 | pconfig->mode = option & 01777U; |
772 | break; | 773 | break; |
773 | 774 | ||
774 | case Opt_size: { | 775 | case Opt_size: { |
@@ -817,6 +818,8 @@ hugetlbfs_fill_super(struct super_block *sb, void *data, int silent) | |||
817 | struct hugetlbfs_config config; | 818 | struct hugetlbfs_config config; |
818 | struct hugetlbfs_sb_info *sbinfo; | 819 | struct hugetlbfs_sb_info *sbinfo; |
819 | 820 | ||
821 | save_mount_options(sb, data); | ||
822 | |||
820 | config.nr_blocks = -1; /* No limit on size by default */ | 823 | config.nr_blocks = -1; /* No limit on size by default */ |
821 | config.nr_inodes = -1; /* No limit on number of inodes by default */ | 824 | config.nr_inodes = -1; /* No limit on number of inodes by default */ |
822 | config.uid = current->fsuid; | 825 | config.uid = current->fsuid; |