linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/vmalloc.c: fix a comment
@ 2022-02-27  8:45 Yixuan Cao
  2022-02-27 16:29 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Yixuan Cao @ 2022-02-27  8:45 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Yixuan Cao

Dear Sir/Madam,

The sentence
"but the mempolcy want to alloc memory by interleaving"
should be rephrased with
"but the mempolicy wants to alloc memory by interleaving"
where "mempolicy" is a struct name.

Thanks and best regards,
Yixuan Cao

Signed-off-by: Yixuan Cao <caoyixuan2019@email.szu.edu.cn>
---
 mm/vmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index b454cf1a261f..89d48d8eb20c 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2905,7 +2905,7 @@ vm_area_alloc_pages(gfp_t gfp, int nid,
 			/* memory allocation should consider mempolicy, we can't
 			 * wrongly use nearest node when nid == NUMA_NO_NODE,
 			 * otherwise memory may be allocated in only one node,
-			 * but mempolcy want to alloc memory by interleaving.
+			 * but mempolicy want to alloc memory by interleaving.
 			 */
 			if (IS_ENABLED(CONFIG_NUMA) && nid == NUMA_NO_NODE)
 				nr = alloc_pages_bulk_array_mempolicy(bulk_gfp,
-- 
2.31.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm/vmalloc.c: fix a comment
  2022-02-27  8:45 [PATCH] mm/vmalloc.c: fix a comment Yixuan Cao
@ 2022-02-27 16:29 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2022-02-27 16:29 UTC (permalink / raw)
  To: Yixuan Cao, akpm; +Cc: linux-mm, linux-kernel



On 2/27/22 00:45, Yixuan Cao wrote:
> Dear Sir/Madam,
> 
> The sentence
> "but the mempolcy want to alloc memory by interleaving"
> should be rephrased with
> "but the mempolicy wants to alloc memory by interleaving"
> where "mempolicy" is a struct name.
> 
> Thanks and best regards,
> Yixuan Cao
> 
> Signed-off-by: Yixuan Cao <caoyixuan2019@email.szu.edu.cn>
> ---
>  mm/vmalloc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index b454cf1a261f..89d48d8eb20c 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -2905,7 +2905,7 @@ vm_area_alloc_pages(gfp_t gfp, int nid,
>  			/* memory allocation should consider mempolicy, we can't
>  			 * wrongly use nearest node when nid == NUMA_NO_NODE,
>  			 * otherwise memory may be allocated in only one node,
> -			 * but mempolcy want to alloc memory by interleaving.
> +			 * but mempolicy want to alloc memory by interleaving.

s/want/wants/
as in your commentary above.

>  			 */
>  			if (IS_ENABLED(CONFIG_NUMA) && nid == NUMA_NO_NODE)
>  				nr = alloc_pages_bulk_array_mempolicy(bulk_gfp,

thanks.
-- 
~Randy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-27 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-27  8:45 [PATCH] mm/vmalloc.c: fix a comment Yixuan Cao
2022-02-27 16:29 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).