Skip to content

Commit 72a3e3e

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: hugetlbpage.rst: fix some warnings
Some new command line parameters were added at hugetlbpage.rst. Adjust them in order to properly parse that part of the file, avoiding those warnings: Documentation/admin-guide/mm/hugetlbpage.rst:105: WARNING: Unexpected indentation. Documentation/admin-guide/mm/hugetlbpage.rst:108: WARNING: Unexpected indentation. Documentation/admin-guide/mm/hugetlbpage.rst:109: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/mm/hugetlbpage.rst:112: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/mm/hugetlbpage.rst:120: WARNING: Unexpected indentation. Documentation/admin-guide/mm/hugetlbpage.rst:121: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/mm/hugetlbpage.rst:132: WARNING: Unexpected indentation. Documentation/admin-guide/mm/hugetlbpage.rst:135: WARNING: Block quote ends without a blank line; unexpected unindent. Fixes: cd9fa28b5351 ("hugetlbfs: clean up command line processing") Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/86b6796b1a84e18b24314ecd29318951c1479ca2.1592895969.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 466fb03 commit 72a3e3e

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

‎Documentation/admin-guide/mm/hugetlbpage.rst‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,37 +101,48 @@ be specified in bytes with optional scale suffix [kKmMgG]. The default huge
101101
page size may be selected with the "default_hugepagesz=<size>" boot parameter.
102102

103103
Hugetlb boot command line parameter semantics
104-
hugepagesz - Specify a huge page size. Used in conjunction with hugepages
104+
105+
hugepagesz
106+
Specify a huge page size. Used in conjunction with hugepages
105107
parameter to preallocate a number of huge pages of the specified
106108
size. Hence, hugepagesz and hugepages are typically specified in
107-
pairs such as:
109+
pairs such as::
110+
108111
hugepagesz=2M hugepages=512
112+
109113
hugepagesz can only be specified once on the command line for a
110114
specific huge page size. Valid huge page sizes are architecture
111115
dependent.
112-
hugepages - Specify the number of huge pages to preallocate. This typically
116+
hugepages
117+
Specify the number of huge pages to preallocate. This typically
113118
follows a valid hugepagesz or default_hugepagesz parameter. However,
114119
if hugepages is the first or only hugetlb command line parameter it
115120
implicitly specifies the number of huge pages of default size to
116121
allocate. If the number of huge pages of default size is implicitly
117122
specified, it can not be overwritten by a hugepagesz,hugepages
118123
parameter pair for the default size.
119-
For example, on an architecture with 2M default huge page size:
124+
125+
For example, on an architecture with 2M default huge page size::
126+
120127
hugepages=256 hugepagesz=2M hugepages=512
128+
121129
will result in 256 2M huge pages being allocated and a warning message
122130
indicating that the hugepages=512 parameter is ignored. If a hugepages
123131
parameter is preceded by an invalid hugepagesz parameter, it will
124132
be ignored.
125-
default_hugepagesz - Specify the default huge page size. This parameter can
133+
default_hugepagesz
134+
pecify the default huge page size. This parameter can
126135
only be specified once on the command line. default_hugepagesz can
127136
optionally be followed by the hugepages parameter to preallocate a
128137
specific number of huge pages of default size. The number of default
129138
sized huge pages to preallocate can also be implicitly specified as
130139
mentioned in the hugepages section above. Therefore, on an
131-
architecture with 2M default huge page size:
140+
architecture with 2M default huge page size::
141+
132142
hugepages=256
133143
default_hugepagesz=2M hugepages=256
134144
hugepages=256 default_hugepagesz=2M
145+
135146
will all result in 256 2M huge pages being allocated. Valid default
136147
huge page size is architecture dependent.
137148

0 commit comments

Comments
 (0)