Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2026489ybt; Mon, 15 Jun 2020 16:15:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeup49vlRt6GObnTjudn626QbVMj1m9f16OuPy8bQ3HwUGtu3+Ofj2odDpFETrUi9unfBl X-Received: by 2002:a50:c013:: with SMTP id r19mr110187edb.340.1592262946617; Mon, 15 Jun 2020 16:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592262946; cv=none; d=google.com; s=arc-20160816; b=CxmTzU0Zw7mlysjPWuPQQ09rx0IlKZnTpk28HjSqvPT9H9mO+x3I3/F5CRAHnsYye0 sg9eUUjjV1rdSPTErvHEUJCd/bQ8q3hueMoMhvieBL6cy3XPgUZ7VDz954aYph6cIOLk lJQtAm5O39hLKkizSVVnqQASczYke4XE34rbqw4QFw13Cs52DglTYfwrCYHa3TMMP0pT QBS/m1yCOfbnsU2JxSHbnyXNcuwsdplLuy3hIK/0YTsOn3X+Davp/2HqIwYUb3xGdksO QnyeqfJBNyKvQv8hdghi0zSAtK02gzFuFcs+tYBhLSJnDUaCaqiW+ZyPpIXwFHIaaLtG Ao3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gCN6TnTiCi8K0gBGCrSWRSdQxoTqdDw82hOjy8EbDD4=; b=H83oYbNooYSjQ567kGMQgZiuaDCFKLc9xHWL7DuyBJYhXs6ZBqTbsw/bAe436W8yA3 Apa+Xb/SDkXiYOWxPkDCSs35NVrU5cq3Gsdl0L22ddo4WQtTxqQId0BjwAgpkV0MMiiO 8TiDZwT2nsomA3q5DwcjmF+lS3i35zuT5xccYvG0oD5wQLgJ0LYcJNBpOQj8BhGF7gHQ OSId+wzLifDfCuIHvPxFOvQWSCDOzdihXFWbLfw/OJLerU4xAlMyAoAJUDUUN8aKDPBc ABXXYAWV+lP7SUSfcketojndOB8hiWx8/liUiKN7eRtxVaH9+v1rvHuPBc90vOPe/sPh utxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z8KpbfQz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f6si10119188eds.91.2020.06.15.16.15.24; Mon, 15 Jun 2020 16:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z8KpbfQz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726777AbgFOXNS (ORCPT + 99 others); Mon, 15 Jun 2020 19:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbgFOXNR (ORCPT ); Mon, 15 Jun 2020 19:13:17 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C21F9C061A0E for ; Mon, 15 Jun 2020 16:13:16 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id h10so4574256pgq.10 for ; Mon, 15 Jun 2020 16:13:16 -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; bh=gCN6TnTiCi8K0gBGCrSWRSdQxoTqdDw82hOjy8EbDD4=; b=Z8KpbfQz2lb+n+zm+c8pXwrgXG+ypStjQfRPk5R72bJVqDqaBh55FpRZlx8RX2b4C0 uqZyiqoiYD8X1Sf+qCjasry8UVlhsEZ9KnLNtqCmzrBi8RA1KkK1lZ2j9I09OXpemvwI /U2Be+AeGmDW5+xNbU/79+/OsT5aCNXx0xQYxSFcMjqpmk8cGHiuh9QYCW341zqFe1zY 4AXWxfOKeNF3DV4mOqErPSQIiBQXc/7QS6QwWzAZZqALF/SmaFgM/XZsIU28jRiwZaRx akVyy2zrWI7UHcTSbfRlD7hYOhDI+jlP5mau0PvDUb6WatsBEeyJa1BJoD71ZVF2X/6b wJ1Q== 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; bh=gCN6TnTiCi8K0gBGCrSWRSdQxoTqdDw82hOjy8EbDD4=; b=TGxwulqQs1UUIsv2cqGmd/CDNO4DHYs+gNulH+3L9FgrAzQXyKwRsvw2tPGzjF9N8M xfErbsHESDwnZN0ENJu+V0tb58pOPKjcMdSzzXq1Ur+Aow6xCcnLGp+FpLaPS1YH22Tj aWdrvKVUkX8ujp7VeC4Zg4102FelqyEXGPofemyTinZtxjqSejEsLyoyDrQnWfk34mU5 0Fo2NjbQEAbaIIFR5rKZk7Y/wPCFmoe3QmoiDRNLSW/UY+5o4umMwv4wWmDp4Jrrjijy GP574WUy8HkIMBG2Ye1qahXYSXeELaaJYkFySUl7j29vpwB8yB0VGRMj3p77G48W5g2D kJwg== X-Gm-Message-State: AOAM530MYVv8ISad5nLkUYt1hQxKArhlYucjQ3qxn6R8VKha+ocWx5vc JCI5FxHmubKuzfI2cSgYuhYKBydRetuisw4AdQ0= X-Received: by 2002:a63:d501:: with SMTP id c1mr8848877pgg.159.1592262796111; Mon, 15 Jun 2020 16:13:16 -0700 (PDT) MIME-Version: 1.0 References: <20200615221607.7764-1-peterx@redhat.com> <20200615222328.8745-1-peterx@redhat.com> In-Reply-To: <20200615222328.8745-1-peterx@redhat.com> From: Max Filippov Date: Mon, 15 Jun 2020 16:13:04 -0700 Message-ID: Subject: Re: [PATCH 25/25] mm/xtensa: Use mm_fault_accounting() To: Peter Xu Cc: LKML , Gerald Schaefer , Andrew Morton , Linus Torvalds , Andrea Arcangeli , Chris Zankel , "open list:TENSILICA XTENSA PORT (xtensa)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 3:23 PM Peter Xu wrote: > > Use the new mm_fault_accounting() helper for page fault accounting. > > Avoid doing page fault accounting multiple times if the page fault is retried. > > CC: Chris Zankel > CC: Max Filippov > CC: linux-xtensa@linux-xtensa.org > Signed-off-by: Peter Xu > --- > arch/xtensa/mm/fault.c | 14 +++----------- > 1 file changed, 3 insertions(+), 11 deletions(-) Acked-by: Max Filippov -- Thanks. -- Max