diff options
| author | Bang Li <[email protected]> | 2024-06-28 11:23:27 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-10 12:14:52 -0700 |
| commit | 843a2e24c24c5311831860c6b78ceacdd4627000 (patch) | |
| tree | e3d5616977f4e596c0e32350ba4da3c5a249e265 /tools/perf/scripts/python | |
| parent | cc937dad85aea4ab9e4f9827d7ea55932c86906b (diff) | |
mm/shmem: fix input and output inconsistencies
Commit 19eaf44954df ("mm: thp: support allocation of anonymous multi-size
THP") added mTHP support for anonymous shmem. We can configure different
policies through the multi-size THP sysfs interface for anonymous shmem.
But when we configure the "advise" policy of
/sys/kernel/mm/transparent_hugepage/hugepages-xxxkB/shmem_enabled, we
cannot write the "advise", but write the "madvise", which is unreasonable.
We should keep the output and input values consistent, which is more
convenient for users.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 61a57f1b1da9 ("mm: shmem: add multi-size THP sysfs interface for anonymous shmem")
Signed-off-by: Bang Li <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Cc: Bang Li <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions