Re: [PATCH 1/2] powerpc/mm: Add a helper to select PAGE_KERNEL_RO or PAGE_READONLY

2019-09-25 Thread Michael Ellerman
On Wed, 2019-08-21 at 10:20:00 UTC, Christophe Leroy wrote: > In a couple of places there is a need to select whether read-only > protection of shadow pages is performed with PAGE_KERNEL_RO or with > PAGE_READONLY. > > Add a helper to avoid duplicating the choice. > > Signed-off-by: Christophe

[PATCH 1/2] powerpc/mm: Add a helper to select PAGE_KERNEL_RO or PAGE_READONLY

2019-08-21 Thread Christophe Leroy
In a couple of places there is a need to select whether read-only protection of shadow pages is performed with PAGE_KERNEL_RO or with PAGE_READONLY. Add a helper to avoid duplicating the choice. Signed-off-by: Christophe Leroy Cc: sta...@vger.kernel.org --- This small series applies on top of