]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Add functions to support extra actions on swap in/out
authorKhalid Aziz <khalid.aziz@oracle.com>
Wed, 18 Jan 2017 17:36:21 +0000 (10:36 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 9 Mar 2017 03:30:13 +0000 (19:30 -0800)
commita957b34219130e5b0669d74bb17ee23f8649291c
treeec6fbc239bc1720bf07260160530c558661dc2ab
parent72ac0349d40de15fb1d443a52cd354e9ec6c2380
mm: Add functions to support extra actions on swap in/out

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,
arch_unmap_one() to be called when a page is being unmapped for swap
out.

This is a backport of patch sent upstream and brings UEK code in sync
with upstream patch v6.

Orabug: 22713162

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Cc: Khalid Aziz <khalid@gonehiking.org>
include/asm-generic/pgtable.h
mm/memory.c
mm/rmap.c