aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorKhalid Aziz <[email protected]>2018-02-21 10:15:44 -0700
committerDavid S. Miller <[email protected]>2018-03-18 07:38:45 -0700
commitca827d55ebaa24de9fca36ee24e42d6fc5119ee3 (patch)
tree12b0ff1c2705daaeeeb7fd4d5a0be63d7098016f /lib/memory-notifier-error-inject.c
parentd84bb709aa4a6a155b1aaaf449cad21f02be4594 (diff)
mm, swap: Add infrastructure for saving page metadata on swap
If a processor supports special metadata for a page, for example ADI version tags on SPARC M7, this metadata must be saved when the page is swapped out. The same metadata must be restored when the page is swapped back in. This patch adds two new architecture specific functions - arch_do_swap_page() to be called when a page is swapped in, and arch_unmap_one() to be called when a page is being unmapped for swap out. These architecture hooks allow page metadata to be saved if the architecture supports it. Signed-off-by: Khalid Aziz <[email protected]> Cc: Khalid Aziz <[email protected]> Acked-by: Jerome Marchand <[email protected]> Reviewed-by: Anthony Yznaga <[email protected]> Acked-by: Andrew Morton <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions