diff options
| author | Baoquan He <bhe@redhat.com> | 2025-02-05 17:27:13 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-16 22:06:05 -0700 |
| commit | 9b9cba7289ba7e5076fbfe913860306b4672631c (patch) | |
| tree | 5416b6dde44586948366906840fbaffddc0bd727 /tools/perf/scripts/python | |
| parent | 0eb7d2c337f9df3b6adbcbdce213595d94781e05 (diff) | |
| download | linux-9b9cba7289ba7e5076fbfe913860306b4672631c.tar.gz linux-9b9cba7289ba7e5076fbfe913860306b4672631c.zip | |
mm/swap: skip scanning cluster range if it's empty cluster
Since ci->lock has been taken when isolating cluster from
si->free_clusters or taking si->percpu_cluster->next[order], it's
unnecessary to scan and check the cluster range availability if i'ts empty
cluster, and this can accelerate the huge page swapping.
Link: https://lkml.kernel.org/r/20250205092721.9395-5-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
