Commit ed547ab6 authored by liujinlong's avatar liujinlong Committed by Andrew Morton

mm: vmscan: modify an easily misunderstood function name

When looking at the code in the memory part, I found that the purpose of
the function prepare_scan_countis very different from the function name. 
It is easy to misunderstand when reading.The function prepare_scan_count
mainly completes the assignment of the scan_control structure.Therefore, I
suggest that the function name can be changed to prepare_scan_control,
which is easier to understand.

Link: https://lkml.kernel.org/r/20230912085923.27238-1-liujinlong@kylinos.cnSigned-off-by: default avatarliujinlong <liujinlong@kylinos.cn>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 8a0e8bb1
...@@ -2208,7 +2208,7 @@ enum scan_balance { ...@@ -2208,7 +2208,7 @@ enum scan_balance {
SCAN_FILE, SCAN_FILE,
}; };
static void prepare_scan_count(pg_data_t *pgdat, struct scan_control *sc) static void prepare_scan_control(pg_data_t *pgdat, struct scan_control *sc)
{ {
unsigned long file; unsigned long file;
struct lruvec *target_lruvec; struct lruvec *target_lruvec;
...@@ -5834,7 +5834,7 @@ static void shrink_node(pg_data_t *pgdat, struct scan_control *sc) ...@@ -5834,7 +5834,7 @@ static void shrink_node(pg_data_t *pgdat, struct scan_control *sc)
nr_reclaimed = sc->nr_reclaimed; nr_reclaimed = sc->nr_reclaimed;
nr_scanned = sc->nr_scanned; nr_scanned = sc->nr_scanned;
prepare_scan_count(pgdat, sc); prepare_scan_control(pgdat, sc);
shrink_node_memcgs(pgdat, sc); shrink_node_memcgs(pgdat, sc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment