]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Add PG_arch_2 page flag
authorSteven Price <steven.price@arm.com>
Wed, 22 Apr 2020 14:25:27 +0000 (15:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Sep 2020 11:46:06 +0000 (12:46 +0100)
commit4aaa6e8558f303aa037f94e1748bb90e2c0e988d
treeb6077490a328fe217ca4f359ceea847872f3f4cd
parentd91ce53b44ba9c1874d814f0c3073ccadf7167e0
mm: Add PG_arch_2 page flag

For arm64 MTE support it is necessary to be able to mark pages that
contain user space visible tags that will need to be saved/restored e.g.
when swapped out.

To support this add a new arch specific flag (PG_arch_2). This flag is
only available on 64-bit architectures due to the limited number of
spare page flags on the 32-bit ones.

Signed-off-by: Steven Price <steven.price@arm.com>
[catalin.marinas@arm.com: use CONFIG_64BIT for guarding this new flag]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
fs/proc/page.c
include/linux/kernel-page-flags.h
include/linux/page-flags.h
include/trace/events/mmflags.h
tools/vm/page-types.c