]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: fix PMD pages allocation by restoring pmd_alloc_one()
authorMike Rapoport <rppt@linux.ibm.com>
Sun, 16 Aug 2020 14:24:03 +0000 (17:24 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Aug 2020 17:53:13 +0000 (10:53 -0700)
commit77951ddeec7c66bdbed591b63001813641e5fa62
tree98b643cd63565f4943a8c4a79483d3f9207bb0bd
parent87a7dac9413c22908500613bea261fb3a54b28d2
parisc: fix PMD pages allocation by restoring pmd_alloc_one()

Commit 6e5d1e8eb043 ("asm-generic: pgalloc: provide generic pmd_alloc_one()
and pmd_free_one()") converted parisc to use generic version of
pmd_alloc_one() but it missed the fact that parisc uses order-1 pages for
PMD.

Restore the original version of pmd_alloc_one() for parisc, just use
GFP_PGTABLE_KERNEL that implies __GFP_ZERO instead of GFP_KERNEL and
memset.

Fixes: 6e5d1e8eb043 ("asm-generic: pgalloc: provide generic pmd_alloc_one() and pmd_free_one()")
Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Tested-by: Meelis Roos <mroos@linux.ee>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lkml.kernel.org/r/9f2b5ebd-e4a4-0fa1-6cd3-4b9f6892d1ad@linux.ee
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/parisc/include/asm/pgalloc.h