Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1169416pxk; Mon, 31 Aug 2020 11:41:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpCYkiGrV+qIDd9yboGShgXPKS1RrKT69qmDB1eLPVLXGhgv534ANjCFKn8sdnfsNjBfaP X-Received: by 2002:a05:6402:748:: with SMTP id p8mr2463908edy.305.1598899299184; Mon, 31 Aug 2020 11:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598899299; cv=none; d=google.com; s=arc-20160816; b=z34uReK/mKOOtOAMPM5KwLxbbaW6jK+lvcvWHWcYlfd6fP5uEAFyuTrAT+PKgWOTUI TmrTT9HDZm/kfleuT3Z263KntccojtePlFmvyPx3MvNJ0HAFYVqawdMi4UqKDaaVHKPW ziLfAffmJdxob5Q7nZLaWyWMme9IoahlTYRTJaN2Lvjj1fr130lwaaYLxJkbahf42cMk GYtQjdM4WT9hqlmSy+gZWsBinZzMxs4d+cm2NzQPnQ8Q4Vyjcy/gpT3W5NQ5/nvZGtb/ ixmyhxe9Zsc2OD222MqtLr4Qj/850EihfekNrbNx3vIMUADCSShQ+6DfIp3ydPa50AWK oVlg== 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=oiXcm4u36vD6BWyxr4Psu6FC09upa/dV/NKGEiJVOTg=; b=OsCY6bv6Ibsk0+4SAc3u+TSfSuywm0ynOXsHppTu9+KsOwzmKaPpjnm0SmhggTD1vc 8W1JyfGegJfN7t1Z+4lcMLeuzqGqM78fErV/j1VKcnMe4DlnD5thNM2UbVWVByTYcrlN wLgPqCGvOVQ6JyyzdcfdsDh3q4BD7ZkDAHo30fInd4/E8GG6d48ksIznb0iT2bUVPAh9 6TBdJrruvVitzYMfCvTXZgDchpSGEJp85FaGGOaY5yXK/6PSxLdu6lANQgCls89aaVML uKotFme/fwi2nas1zIZGmrgniHdn7COebeztIByCVJL/m+QFTxgTP1+Gc0HBU9XiFLbL XFAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=M1a3QzyL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d25si5815434edn.340.2020.08.31.11.41.16; Mon, 31 Aug 2020 11:41:39 -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=@google.com header.s=20161025 header.b=M1a3QzyL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728107AbgHaOqX (ORCPT + 99 others); Mon, 31 Aug 2020 10:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbgHaOp6 (ORCPT ); Mon, 31 Aug 2020 10:45:58 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8344C061573 for ; Mon, 31 Aug 2020 07:45:57 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id y4so5939494ljk.8 for ; Mon, 31 Aug 2020 07:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oiXcm4u36vD6BWyxr4Psu6FC09upa/dV/NKGEiJVOTg=; b=M1a3QzyLYSn+zE0HTt5zRzioXgASrO4Sf7UZjrgCUjtgHLL60fZixK7uxwhWImpBNP YIxSDm9DBW1tjLB4iNyGRYx6VSi7qetHjnf0n+oiwZbKn0WTA6Xhth9svZQO/Dihd4ih YojnXuoph1S2i+GG4M1m1uRnyF5RMDV6ZbFjPaaOi5jC2iC3NbFbhKrLXSEvM/WoizmE pj/rA8c6owsHeCgyFKZUrVDtkUzqZ3lqW+LpdGrkCAsSVxN2Pm4+NE8qx/pDAgaS3pZm PVxVxTbZSVqqK7ys1LmKh7nLTao8pfGFc8Mu+c1d99MMl1ey3q8UnN9GY8tpm6Py7Xix 2pVA== 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=oiXcm4u36vD6BWyxr4Psu6FC09upa/dV/NKGEiJVOTg=; b=b7g32tDMXWpYx787ygIpO3Mm5csQGZhQZ4b9FIZMT8X/BpV65DB5OqYDC7S/vW4af6 x6ZphsYzlzze1ngVksTDqvZRWSEyvJC0rCWplpkY0gnNp2JwThJkuiN5iZKNPPcGuR59 PaSqEDyc433GsM1QWdBdgmqF5GrNvC3xKdPHJjJqEenzINGAtdrMhwjIxac01l0A5Iro TeeVJpWxkicuxy94zjY/SNlJ/BtKUVpzCscpQ5DzhKW0kb2CynozToMiZ11nU6YncBR3 vdRN7NgokQEkXfJ1kXG2sxvb/SR/QZ1BXoyen/99Jl9ELagrVJF8d30kSV1rKx07pO2o UYDQ== X-Gm-Message-State: AOAM531Imwn7HtUhisX9HIW2ts0L1VMzgvjJUZ79NzKU5J095mRO5C0Y 2g1HQxxTwbORuOR+Zii7d5gbl8rcnoUSc62o5+x+Cw== X-Received: by 2002:a2e:9d8e:: with SMTP id c14mr873904ljj.332.1598885155998; Mon, 31 Aug 2020 07:45:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shakeel Butt Date: Mon, 31 Aug 2020 07:45:44 -0700 Message-ID: Subject: Re: [PATCH 5/5] mlock: fix unevictable_pgs event counts on THP To: Hugh Dickins Cc: Andrew Morton , Alex Shi , Johannes Weiner , Michal Hocko , Mike Kravetz , Matthew Wilcox , Qian Cai , LKML , Linux MM 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 Sun, Aug 30, 2020 at 2:09 PM Hugh Dickins wrote: > > 5.8 commit 5d91f31faf8e ("mm: swap: fix vmstats for huge page") has > established that vm_events should count every subpage of a THP, > including unevictable_pgs_culled and unevictable_pgs_rescued; but > lru_cache_add_inactive_or_unevictable() was not doing so for > unevictable_pgs_mlocked, and mm/mlock.c was not doing so for > unevictable_pgs mlocked, munlocked, cleared and stranded. > > Fix them; but THPs don't go the pagevec way in mlock.c, > so no fixes needed on that path. > > Fixes: 5d91f31faf8e ("mm: swap: fix vmstats for huge page") > Signed-off-by: Hugh Dickins Reviewed-by: Shakeel Butt