diff options
author | David Howells <dhowells@redhat.com> | 2017-07-05 16:24:18 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-06 03:31:46 -0400 |
commit | 4a25220d4e43bb2461823dbc7eb1502a34087958 (patch) | |
tree | fb8a04864c63aecacb7957a924f3c9dadab757e9 /include/linux/hugetlb.h | |
parent | c3d98ea08291ca26144780f601e1fd39e4f20f7e (diff) | |
download | op-kernel-dev-4a25220d4e43bb2461823dbc7eb1502a34087958.zip op-kernel-dev-4a25220d4e43bb2461823dbc7eb1502a34087958.tar.gz |
hugetlbfs: Implement show_options
Implement the show_options superblock op for hugetlbfs as part of a bid to
get rid of s_options and generic_show_options() to make it easier to
implement a context-based mount where the mount options can be passed
individually over a file descriptor.
Note that the uid and gid should possibly be displayed relative to the
viewer's user namespace.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Nadia Yvette Chambers <nyc@holomorphy.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index b857fc8..3b6eeaa 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -262,6 +262,9 @@ struct hugetlbfs_sb_info { spinlock_t stat_lock; struct hstate *hstate; struct hugepage_subpool *spool; + kuid_t uid; + kgid_t gid; + umode_t mode; }; static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb) |