mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: Adam Litke <[email protected]> Cc: Badari Pulavarty <[email protected]> Cc: Ken Chen <[email protected]> Cc: William Lee Irwin III <[email protected]> Cc: David Gibson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6d9c1fd425
commit
10f19a86a5
1 changed files with 3 additions and 0 deletions
|
|
@ -734,6 +734,7 @@ static const struct super_operations hugetlbfs_ops = {
|
|||
.delete_inode = hugetlbfs_delete_inode,
|
||||
.drop_inode = hugetlbfs_drop_inode,
|
||||
.put_super = hugetlbfs_put_super,
|
||||
.show_options = generic_show_options,
|
||||
};
|
||||
|
||||
static int
|
||||
|
|
@ -817,6 +818,8 @@ hugetlbfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
struct hugetlbfs_config config;
|
||||
struct hugetlbfs_sb_info *sbinfo;
|
||||
|
||||
save_mount_options(sb, data);
|
||||
|
||||
config.nr_blocks = -1; /* No limit on size by default */
|
||||
config.nr_inodes = -1; /* No limit on number of inodes by default */
|
||||
config.uid = current->fsuid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue