Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3387833yba; Mon, 6 May 2019 23:51:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsXqItMIgOWT5x0oZHhA1L1Win3VrjvoFJLmhS7EPetFI1zqsgibhfvWJlE9jUIJ2thdWr X-Received: by 2002:a63:fd06:: with SMTP id d6mr38087911pgh.183.1557211863449; Mon, 06 May 2019 23:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557211863; cv=none; d=google.com; s=arc-20160816; b=IlVKKaJW0hJQFwvXOTuujWByNgIKEaqEy3UCHVC8V9tFsgCF2RmNqrE7dm4MWP9ajT 7dcT240L3WPvcGU/EAVEJE14YaFNwOPX/5zuoUJ6+nHtFw/Txq5E3XuUlPtjBVfVlTVO HjSqIa0vigigwtcdPgz1UeMH+oiDFqk4EjB4+qB4nMIPhZurOiV+3XIGUDxvPkK6MG1C C9k7PwE1AkD9MOFj29neuJKD8CgkIWXMlSa5LbZW8RLpf4qFk76sxib5VLIesFRSwj5U 0j+5UN+UrRtr2jWg+yyiNDG7mw/tDs79GRUzmN8yrI8xiZhP1uo7JKzbCEZxESM94bAJ oJ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pa7Box1aR7yFtR1LX1WDnV3kRpU7SqZCsbjs49Q3I5I=; b=W5sA1hdJlLfa8UxWGhpSJr7Li328FaCcfSNMeGucaRXQuovA1IBjspRF8oTHuGzA3s 30f3dbEFRrYfx84xtD3N2wxuIVdP2jUXkwlclrMWhbL+mM/GsVl9BI+WNfCxNSMzKv9T 3Pbv0L3UXhL4J1gJXpi6TgteyrV16DQPgF8193eT8sRoLBmOrimaqW/2tcUcX8aOXgE+ I1b0UvA5zqqd2aGm9cwLEkCo++nyJEdatYQrJCp4+nW8bVWxSdP5Ctrjb9oga6zGEWzW nl6BtgRCDIaLPFMgTlRf8zqSez1w6sFPDwQLk7nG4I7OFLZjR4HiVRtg51xjKlbsA1WG e69A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MbpgTNQu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si19619496pfo.133.2019.05.06.23.50.48; Mon, 06 May 2019 23:51:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MbpgTNQu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbfEGGtq (ORCPT + 99 others); Tue, 7 May 2019 02:49:46 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37879 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfEGGtp (ORCPT ); Tue, 7 May 2019 02:49:45 -0400 Received: by mail-qk1-f194.google.com with SMTP id c1so231509qkk.4; Mon, 06 May 2019 23:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pa7Box1aR7yFtR1LX1WDnV3kRpU7SqZCsbjs49Q3I5I=; b=MbpgTNQuafLtAS2Dly735CRfwi2rTUQf2u2v4oGvQgQgSYIdnRpg7VCLomPpMzIscG QaTnC9SQ9ku6gzFOzq1s9XrRaJmYor/1LFKrkhizBLNXIXufH7ZYafVfUTi/hxmPPuHk B/SkK/YRJGmYzfaQ1xghtxinwaerdxpRKizUfkuezccasVKNLUKgHxlEEtCQzs7jj3xl zQkJPXfNNvA3TqInSISCOxmMnYUjkdAFYUZlvI0ouvwsL+dfg4OFY2WIgIiVzRvRisWc 5DS8N2wLUkGet8qbU+i0bfGDKHxX5peC2gXK9w9E6zQg9z2uNJlAWgMxSlSz/L/CQjSl IVaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pa7Box1aR7yFtR1LX1WDnV3kRpU7SqZCsbjs49Q3I5I=; b=dgpuLZ7Sxs70cd6gfm8S4JBhVsVHVCaxSQnsxQQbHLpj6sAyMOkbFdtkrrSh363qfE SqKVi9BdHAPY+jdqIYwfM+6MAdjZz00uLaaCpylF3GpKSEGAiHaxTGM4nO4YMYIMMZYX DDcYvhLJIfAbKwcnPFP0IcuDMGIAdy6UmHchuR1nEZapUUk8AfNsiB/gP1OcVGO+6a9/ I2we6KVblntwp0ZXsHsiiuv96qRZqTiGYXhYmzsvr7rT+WMMzUY6zTAXX0d5UHNHoGvz 66dGNXxIT7n127CaN7edP7HtnYQtnLd1o1+WPrDJgEPehN0fkOdA2jCddlpVeHvdIfSQ 24kw== X-Gm-Message-State: APjAAAVM93RuASodQymRZFilQ/dHOFT8eFhzpoCfqwDwp4+Gx8hCbR2o qpJxz6jk056gefIIni33AnTcemXyaltduTXD2HI= X-Received: by 2002:a05:620a:1012:: with SMTP id z18mr1671111qkj.205.1557211784520; Mon, 06 May 2019 23:49:44 -0700 (PDT) MIME-Version: 1.0 References: <1556810922-20248-1-git-send-email-rppt@linux.ibm.com> <1556810922-20248-10-git-send-email-rppt@linux.ibm.com> In-Reply-To: <1556810922-20248-10-git-send-email-rppt@linux.ibm.com> From: Greentime Hu Date: Tue, 7 May 2019 14:49:08 +0800 Message-ID: Subject: Re: [PATCH 09/15] nds32: switch to generic version of pte allocation To: Mike Rapoport Cc: Andrew Morton , Arnd Bergmann , Catalin Marinas , Geert Uytterhoeven , Guan Xuetao , Guo Ren , Helge Deller , Ley Foon Tan , Matthew Wilcox , Matt Turner , Michael Ellerman , Michal Hocko , Palmer Dabbelt , Paul Burton , Richard Kuo , Richard Weinberger , Russell King , Sam Creasey , x86@kernel.org, linux-alpha@vger.kernel.org, linux-arch , linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, Linux Kernel Mailing List , linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev , linux-riscv@lists.infradead.org, linux-um@lists.infradead.org, nios2-dev@lists.rocketboards.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, Mike Rapoport =E6=96=BC 2019=E5=B9=B45=E6=9C=882=E6=97= =A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=8811:30=E5=AF=AB=E9=81=93=EF=BC=9A > > The nds32 implementation of pte_alloc_one_kernel() differs from the gener= ic > 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 NU= LL > check for pte. > > The pte_free() version on nds32 is identical to the generic one and can b= e > simply dropped. > > Signed-off-by: Mike Rapoport > --- > arch/nds32/include/asm/pgalloc.h | 31 ++++--------------------------- > 1 file changed, 4 insertions(+), 27 deletions(-) Thanks for your patch. I'm assuming this is going in along with the rest of the patches, so I'm no= t going to add it to my tree. Acked-by: Greentime Hu