diff options
| author | David Hildenbrand <[email protected]> | 2023-01-13 18:10:08 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-02 22:33:07 -0800 |
| commit | ad3150f11b099321331f2f74d008e86ab2a04c7a (patch) | |
| tree | 82d4499ac0639b7b77f2eb8c301907810eea418f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 3151cc26565ea864c51a78900101ad68b864f405 (diff) | |
loongarch/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE
Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE by stealing one bit from the
type. Generic MM currently only uses 5 bits for the type
(MAX_SWAPFILES_SHIFT), so the stolen bit is effectively unused.
While at it, also mask the type in mk_swap_pte().
Note that this bit does not conflict with swap PMDs and could also be used
in swap PMD context later.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: WANG Xuerui <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions