Commit 10f19a86a5e106edb86d354137ba6e7388ecd1ce

Authored by Miklos Szeredi
Committed by Linus Torvalds
1 parent 6d9c1fd425

mount options: fix hugetlbfs

Add a .show_options super operation to hugetlbfs.

Use generic_show_options() and save the complete option string in
hugetlbfs_fill_super().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Adam Litke <agl@us.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Ken Chen <kenchen@google.com>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

fs/hugetlbfs/inode.c
... ... @@ -734,6 +734,7 @@
734 734 .delete_inode = hugetlbfs_delete_inode,
735 735 .drop_inode = hugetlbfs_drop_inode,
736 736 .put_super = hugetlbfs_put_super,
  737 + .show_options = generic_show_options,
737 738 };
738 739  
739 740 static int
... ... @@ -816,6 +817,8 @@
816 817 int ret;
817 818 struct hugetlbfs_config config;
818 819 struct hugetlbfs_sb_info *sbinfo;
  820 +
  821 + save_mount_options(sb, data);
819 822  
820 823 config.nr_blocks = -1; /* No limit on size by default */
821 824 config.nr_inodes = -1; /* No limit on number of inodes by default */