Revision f52a8e1a67cde67c33d5c2eabd6494dcab956677 authored by Mike Rapoport on 12 July 2019, 03:58:18 UTC, committed by Linus Torvalds on 12 July 2019, 18:05:45 UTC
The nds32 implementation of pte_alloc_one_kernel() differs from the
generic in the use of __GFP_RETRY_MAYFAIL flag, which is removed after the
conversion.

The nds32 version of pte_alloc_one() missed the call to
pgtable_page_ctor() and also used __GFP_RETRY_MAYFAIL.  Switching it to
use generic __pte_alloc_one() for the PTE page allocation ensures that
page table constructor is run and the user page tables are allocated with
__GFP_ACCOUNT.

The conversion to the generic version of pte_free_kernel() removes the
NULL check for pte.

The pte_free() version on nds32 is identical to the generic one and can be
simply dropped.

Link: http://lkml.kernel.org/r/1557296232-15361-10-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Guo Ren <guoren@kernel.org>
Cc: Guo Ren <ren_guo@c-sky.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Sam Creasey <sammy@sammy.net>
Cc: Vincent Chen <deanbo422@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b7902ce
History
File Mode Size
auth_gss
xprtrdma
Kconfig -rw-r--r-- 2.4 KB
Makefile -rw-r--r-- 628 bytes
addr.c -rw-r--r-- 8.7 KB
auth.c -rw-r--r-- 21.8 KB
auth_null.c -rw-r--r-- 2.7 KB
auth_unix.c -rw-r--r-- 5.3 KB
backchannel_rqst.c -rw-r--r-- 10.9 KB
cache.c -rw-r--r-- 45.4 KB
clnt.c -rw-r--r-- 70.3 KB
debugfs.c -rw-r--r-- 7.7 KB
netns.h -rw-r--r-- 976 bytes
rpc_pipe.c -rw-r--r-- 35.4 KB
rpcb_clnt.c -rw-r--r-- 30.5 KB
sched.c -rw-r--r-- 33.3 KB
socklib.c -rw-r--r-- 4.5 KB
stats.c -rw-r--r-- 8.4 KB
sunrpc.h -rw-r--r-- 1.9 KB
sunrpc_syms.c -rw-r--r-- 2.8 KB
svc.c -rw-r--r-- 40.5 KB
svc_xprt.c -rw-r--r-- 38.0 KB
svcauth.c -rw-r--r-- 4.5 KB
svcauth_unix.c -rw-r--r-- 21.5 KB
svcsock.c -rw-r--r-- 38.6 KB
sysctl.c -rw-r--r-- 3.6 KB
timer.c -rw-r--r-- 2.9 KB
xdr.c -rw-r--r-- 41.8 KB
xprt.c -rw-r--r-- 50.4 KB
xprtmultipath.c -rw-r--r-- 12.2 KB
xprtsock.c -rw-r--r-- 83.5 KB

back to top