diff options
| author | Peter Xu <[email protected]> | 2022-10-30 17:41:51 -0400 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-11-30 15:58:46 -0800 |
| commit | 15520a3f046998e3f57e695743e99b0875e2dae7 (patch) | |
| tree | 831e756367bc6484cba5fcafc6d782b153e1b4b3 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | ca92ea3dc5a2b01f98e9f02b7a6bc03be06fe124 (diff) | |
mm: use pte markers for swap errors
PTE markers are ideal mechanism for things like SWP_SWAPIN_ERROR. Using a
whole swap entry type for this purpose can be an overkill, especially if
we already have PTE markers. Define a new bit for swapin error and
replace it with pte markers. Then we can safely drop SWP_SWAPIN_ERROR and
give one device slot back to swap.
We used to have SWP_SWAPIN_ERROR taking the page pfn as part of the swap
entry, but it's never used. Neither do I see how it can be useful because
normally the swapin failure should not be caused by a bad page but bad
swap device. Drop it alongside.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Huang Ying <[email protected]>
Reviewed-by: Miaohe Lin <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions