diff options
| author | Hugh Dickins <[email protected]> | 2024-08-25 16:25:39 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:02 -0700 |
| commit | 15444054a537aca115bb077a77e99a9cc5ae11e6 (patch) | |
| tree | 3cf66b4057a97ae2d77b48d1d0e3c9f8874e2d3c /tools/perf/scripts/python | |
| parent | de5b85262e2038a5ae5d281ddf43d35acb2bfa60 (diff) | |
mm: shmem: extend shmem_unused_huge_shrink() to all sizes
Although shmem_get_folio_gfp() is correctly putting inodes on the
shrinklist according to the folio size, shmem_unused_huge_shrink() was
still dealing with that shrinklist in terms of HPAGE_PMD_SIZE.
Generalize that; and to handle the mixture of sizes more sensibly,
shmem_alloc_and_add_folio() give it a number of pages to be freed
(approximate: no need to minimize that with an exact calculation) instead
of a number of inodes to split.
[[email protected]: comment tweak, per David]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Hugh Dickins <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions