Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp314425pxb; Thu, 12 Nov 2020 04:42:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqQZLxsARXZz84dkfWu4PNmwbuNiCS1qatNT3E7zq0v28eR7JhL2smOO0Ub2KI4p5pDSfW X-Received: by 2002:a17:906:d0cc:: with SMTP id bq12mr29358194ejb.127.1605184926211; Thu, 12 Nov 2020 04:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605184926; cv=none; d=google.com; s=arc-20160816; b=y5G7RbIzuYkoBtQDNZgMCxfNfJc0fx5HSDFbjaPxLbhHhdmNwTYoWmQekpzvciTK1K Z/qwMSKVHOFP1sXerJws+k2xiH/QWIknyZ90qfpHzDAlL4ceR/+FP/WFDrOEVN2lX7I2 2iv3Fy4q082g5o5uSiyrGSX6wNexAuqzea7xheV0P8Uqc5VeZQ94wvPoM/2/JjuTY8io LnyddXKviEn6HRrktek1R4Qw51RcKFxeFGtLJqn/rC6Yd1UexdgsXyKVbafWHI33b95T fJCzTklLpvsjJtbLT163hy55VEKVYjdh6HFsZYdcV0iBQq20ksIT2itXIDYS7Nat1FEv C8Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=NPqdGCI5Kz77GcQtOZR/QHpRtb3obycm+GxdiDwP2v8=; b=aoQyf7PG9hFE1rB7mtoEQ/pi7yDxnSrdQyvD6L1KQv4D/okjKE+DXyNRtNmlN/qlsw CuTUjhb2EnypO7LbWOFetpXKki/KL2q60pz5bK2u4Tu0cZXAMtaPqBuzfSoaHdoZLG1k W0jpVAiOhY+eVOhfziTWE2yqyoQDub3taZ61cAgu2oG3q4Wnwgncj3/Ar0ln/+nYH6+J kLzDi+Y7PSa6VzXcK1h1K4bbwsKoxy1bnp835lRRb+0M8MNmiFHDdeceFOi2jLTb3bOW bDAJUQv3C5l/fgPjyUb/xvB6LonD2Hw0/0Lfu1E2EXAojTNRbrB5SY5yR5VcekFhZWUq ALMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si3541962ejb.751.2020.11.12.04.41.42; Thu, 12 Nov 2020 04:42:06 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728196AbgKLMh2 (ORCPT + 99 others); Thu, 12 Nov 2020 07:37:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:59760 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728190AbgKLMh1 (ORCPT ); Thu, 12 Nov 2020 07:37:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 80E14AC6F; Thu, 12 Nov 2020 12:37:24 +0000 (UTC) Subject: Re: [PATCH v21 19/19] mm/lru: revise the comments of lru_lock To: Alex Shi , akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, hannes@cmpxchg.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com Cc: Andrey Ryabinin , Jann Horn References: <1604566549-62481-1-git-send-email-alex.shi@linux.alibaba.com> <1604566549-62481-20-git-send-email-alex.shi@linux.alibaba.com> From: Vlastimil Babka Message-ID: <56046ba1-2175-a10d-279f-f673301ae041@suse.cz> Date: Thu, 12 Nov 2020 13:37:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <1604566549-62481-20-git-send-email-alex.shi@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/20 9:55 AM, Alex Shi wrote: > From: Hugh Dickins > > Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to > fix the incorrect comments in code. Also fixed some zone->lru_lock comment > error from ancient time. etc. > > I struggled to understand the comment above move_pages_to_lru() (surely > it never calls page_referenced()), and eventually realized that most of > it had got separated from shrink_active_list(): move that comment back. > > Signed-off-by: Hugh Dickins > Signed-off-by: Alex Shi > Acked-by: Johannes Weiner > Cc: Andrew Morton > Cc: Tejun Heo > Cc: Andrey Ryabinin > Cc: Jann Horn > Cc: Mel Gorman > Cc: Johannes Weiner > Cc: Matthew Wilcox > Cc: Hugh Dickins > Cc: cgroups@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-mm@kvack.org Acked-by: Vlastimil Babka