diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-07-16 02:40:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:46 -0400 |
commit | e73a75fa7f062b52d015f1c961685dcaac57f710 (patch) | |
tree | de9c45f6a3c59651f8cea516f88cd1f7f8e31855 /Documentation/vm/hugetlbpage.txt | |
parent | 5216184571946b8bbf06f0cd630c7754190fdd1a (diff) |
hugetlbfs: use lib/parser, fix docs
Use lib/parser.c to parse hugetlbfs mount options. Correct docs in
hugetlbpage.txt.
old size of hugetlbfs_fill_super: 675 bytes
new size of hugetlbfs_fill_super: 686 bytes
(hugetlbfs_parse_options() is inlined)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Adam Litke <agl@us.ibm.com>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm/hugetlbpage.txt')
-rw-r--r-- | Documentation/vm/hugetlbpage.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt index 687104bfd09a..51ccc48aa763 100644 --- a/Documentation/vm/hugetlbpage.txt +++ b/Documentation/vm/hugetlbpage.txt | |||
@@ -77,8 +77,9 @@ If the user applications are going to request hugepages using mmap system | |||
77 | call, then it is required that system administrator mount a file system of | 77 | call, then it is required that system administrator mount a file system of |
78 | type hugetlbfs: | 78 | type hugetlbfs: |
79 | 79 | ||
80 | mount none /mnt/huge -t hugetlbfs <uid=value> <gid=value> <mode=value> | 80 | mount -t hugetlbfs \ |
81 | <size=value> <nr_inodes=value> | 81 | -o uid=<value>,gid=<value>,mode=<value>,size=<value>,nr_inodes=<value> \ |
82 | none /mnt/huge | ||
82 | 83 | ||
83 | This command mounts a (pseudo) filesystem of type hugetlbfs on the directory | 84 | This command mounts a (pseudo) filesystem of type hugetlbfs on the directory |
84 | /mnt/huge. Any files created on /mnt/huge uses hugepages. The uid and gid | 85 | /mnt/huge. Any files created on /mnt/huge uses hugepages. The uid and gid |
@@ -88,11 +89,10 @@ mode of root of file system to value & 0777. This value is given in octal. | |||
88 | By default the value 0755 is picked. The size option sets the maximum value of | 89 | By default the value 0755 is picked. The size option sets the maximum value of |
89 | memory (huge pages) allowed for that filesystem (/mnt/huge). The size is | 90 | memory (huge pages) allowed for that filesystem (/mnt/huge). The size is |
90 | rounded down to HPAGE_SIZE. The option nr_inodes sets the maximum number of | 91 | rounded down to HPAGE_SIZE. The option nr_inodes sets the maximum number of |
91 | inodes that /mnt/huge can use. If the size or nr_inodes options are not | 92 | inodes that /mnt/huge can use. If the size or nr_inodes option is not |
92 | provided on command line then no limits are set. For size and nr_inodes | 93 | provided on command line then no limits are set. For size and nr_inodes |
93 | options, you can use [G|g]/[M|m]/[K|k] to represent giga/mega/kilo. For | 94 | options, you can use [G|g]/[M|m]/[K|k] to represent giga/mega/kilo. For |
94 | example, size=2K has the same meaning as size=2048. An example is given at | 95 | example, size=2K has the same meaning as size=2048. |
95 | the end of this document. | ||
96 | 96 | ||
97 | read and write system calls are not supported on files that reside on hugetlb | 97 | read and write system calls are not supported on files that reside on hugetlb |
98 | file systems. | 98 | file systems. |