2022-12-07 07:53:01

by Wang Yong

[permalink] [raw]
Subject: [PATCH] mm: fix typo in struct pglist_data code comment

change "stat" to "start".

Fixes: c959924b0dc5 ("memory tiering: adjust hot threshold automatically")
Signed-off-by: Wang Yong <[email protected]>
---
include/linux/mmzone.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 5f74891556f3..128f3cde800c 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -1200,7 +1200,7 @@ typedef struct pglist_data {
/* start time in ms of current promote threshold adjustment period */
unsigned int nbp_th_start;
/*
- * number of promote candidate pages at stat time of current promote
+ * number of promote candidate pages at start time of current promote
* threshold adjustment period
*/
unsigned long nbp_th_nr_cand;
--
2.25.1


2022-12-08 00:22:44

by Huang, Ying

[permalink] [raw]
Subject: Re: [PATCH] mm: fix typo in struct pglist_data code comment

Wang Yong <[email protected]> writes:

> change "stat" to "start".
>
> Fixes: c959924b0dc5 ("memory tiering: adjust hot threshold automatically")
> Signed-off-by: Wang Yong <[email protected]>
> ---
> include/linux/mmzone.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index 5f74891556f3..128f3cde800c 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -1200,7 +1200,7 @@ typedef struct pglist_data {
> /* start time in ms of current promote threshold adjustment period */
> unsigned int nbp_th_start;
> /*
> - * number of promote candidate pages at stat time of current promote
> + * number of promote candidate pages at start time of current promote

Thanks!

Reviewed-by: "Huang, Ying" <[email protected]>

> * threshold adjustment period
> */
> unsigned long nbp_th_nr_cand;