[PATCH] powerpc/papr_scm: Don't enable direct map for a region by default
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Jan 29 16:17:32 AEDT 2020
On Wed, 2020-01-08 at 06:46:47 UTC, "Aneesh Kumar K.V" wrote:
> Setting ND_REGION_PAGEMAP flag implies namespace mode defaults to fsdax mode.
> This also means kernel ends up creating struct page backing for these namspace
> ranges. With large namespaces that is not the right thing to do. We
> should let the user select the mode he/she wants the namespace to be created
> with.
>
> Hence disable ND_REGION_PAGEMAP for papr_scm regions. We still keep the flag for
> of_pmem because it supports only small persistent memory regions.
>
> This is similar to what is done for x86 with commit
> commit: 004f1afbe199 ("libnvdimm, pmem: direct map legacy pmem by default")
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/7e6f8cbc5e10cf7601c762db267b795273d53078
cheers
More information about the Linuxppc-dev
mailing list