diff mbox series

mm/hugetlb: Fix a typo in comment "manitained"->"maintained"

Message ID 20200410163714.14085-1-ethp@qq.com (mailing list archive)
State New, archived
Headers show
Series mm/hugetlb: Fix a typo in comment "manitained"->"maintained" | expand

Commit Message

Ethon Paul April 10, 2020, 4:37 p.m. UTC
There is a typo in comment, fix it.

Signed-off-by: Ethon Paul <ethp@qq.com>
---
 mm/hugetlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ralph Campbell April 10, 2020, 6:42 p.m. UTC | #1
On 4/10/20 9:37 AM, Ethon Paul wrote:
> There is a typo in comment, fix it.
> 
> Signed-off-by: Ethon Paul <ethp@qq.com>

Looks good but you could add a few more fixes for typos below.
Either way,
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>

> ---
>   mm/hugetlb.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/hugetlb.c b/mm/hugetlb.c
> index f5fb53fdfa02..8c979854c0a0 100644
> --- a/mm/hugetlb.c
> +++ b/mm/hugetlb.c
> @@ -129,7 +129,7 @@ void hugepage_put_subpool(struct hugepage_subpool *spool)
>    * the request.  Otherwise, return the number of pages by which the
>    * global pools must be adjusted (upward).  The returned value may
>    * only be different than the passed value (delta) in the case where
> - * a subpool minimum size must be manitained.
> + * a subpool minimum size must be maintained.
>    */
>   static long hugepage_subpool_get_pages(struct hugepage_subpool *spool,
>   				      long delta)
> 

line 83, s/mased on/based on
line 472, s/ruturns/returns
line 987, s/reverves/reserves
line 1489, s/ Otherwse/Otherwise,
line 4431, s/a active/an active
Ethon Paul April 11, 2020, 1:36 a.m. UTC | #2
>
> On 4/10/20 9:37 AM, Ethon Paul wrote:
>> There is a typo in comment, fix it.
>>
>> Signed-off-by: Ethon Paul <ethp@qq.com>
>
> Looks good but you could add a few more fixes for typos below.
> Either way,
> Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
>
>> ---
>>   mm/hugetlb.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/mm/hugetlb.c b/mm/hugetlb.c
>> index f5fb53fdfa02..8c979854c0a0 100644
>> --- a/mm/hugetlb.c
>> +++ b/mm/hugetlb.c
>> @@ -129,7 +129,7 @@ void hugepage_put_subpool(struct hugepage_subpool 
>> *spool)
>>    * the request.  Otherwise, return the number of pages by which the
>>    * global pools must be adjusted (upward).  The returned value may
>>    * only be different than the passed value (delta) in the case where
>> - * a subpool minimum size must be manitained.
>> + * a subpool minimum size must be maintained.
>>    */
>>   static long hugepage_subpool_get_pages(struct hugepage_subpool *spool,
>>                         long delta)
>>
>
> line 83, s/mased on/based on
> line 472, s/ruturns/returns
> line 987, s/reverves/reserves
> line 1489, s/ Otherwse/Otherwise,
> line 4431, s/a active/an active

Get that. Actually, I didn't find them.

Thanks.
diff mbox series

Patch

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index f5fb53fdfa02..8c979854c0a0 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -129,7 +129,7 @@  void hugepage_put_subpool(struct hugepage_subpool *spool)
  * the request.  Otherwise, return the number of pages by which the
  * global pools must be adjusted (upward).  The returned value may
  * only be different than the passed value (delta) in the case where
- * a subpool minimum size must be manitained.
+ * a subpool minimum size must be maintained.
  */
 static long hugepage_subpool_get_pages(struct hugepage_subpool *spool,
 				      long delta)