Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp795875pxb; Fri, 16 Apr 2021 19:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD4LsV/+TtgqG+UJe4jtFGN4gR4nPg3RcJA/SJDj6YJ2dJK3pJHE1aaHXJSjr1NhpjPrrP X-Received: by 2002:a17:90a:9413:: with SMTP id r19mr12589577pjo.65.1618628011089; Fri, 16 Apr 2021 19:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618628011; cv=none; d=google.com; s=arc-20160816; b=WaIlrSa/1AGBwbz0hIMLRlKF29QjsTdEwRVX/Wf1rx6nodkiry7IG0EyLaUlAJuskf YTuy2E5Om6W53lAFE1U0OgQ657sn85BqXs9Cz7Mh5lNsJyOHmc+vh4wz0szdHu5YWMds IV7qm7lEo9imX57XdEp+pB/Vqe0bINTjnUj5JMFjT6x8PbEAW9pedj57DbMYp2HK123g wenuDj6TnjK3TE6XMkIJKUGf54mrzbHSt0Ji7XOjmT1gKMgmAr/KxVeE8I5J7jpd1SuU EUtbbKLQTYzUfP8FJINzLpSckiNcsjz1wm7EotL8pkwbIguPNApu8yBqP9n1SkDMcG8L ca+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3y4uMJwxdfxzyakbODD1x0NzAbS7Yk2HNyccYDXmfCI=; b=yGdpcwd1w7c5NvJIZf5kCQ5VrzpORaip2tpzNcgscXspTIDxv8hdpYtrABmterZrZH +yRxHszXt1MKiegEpBUUy5SwPFoQhrvw8NrKXrd9D7OuxEE+ERy/0zoio1OAw2lswHZn OwI6x2/UcdEpxZC++YU1Igkl9AlElRrhLicy6YA65iRmCk960POLoOd6CWQKZws44+mN EZcjIGvA0LTc6j+5Fz3umaNuiehcHPLzKrYy7L+Br/YVT8ORRYetkPXZ7xRIB9M68Y0q d/5kpTUzBF/CcsSXUKHSx4ATUpzY26kdzHgGqidPCI7Fgu6E3I2+kH0R//hYlBmE2van Wu+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="uhJmRC/a"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si8260535pgj.253.2021.04.16.19.53.18; Fri, 16 Apr 2021 19:53:31 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b="uhJmRC/a"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbhDQCxP (ORCPT + 99 others); Fri, 16 Apr 2021 22:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbhDQCxP (ORCPT ); Fri, 16 Apr 2021 22:53:15 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5CC2C061574 for ; Fri, 16 Apr 2021 19:52:49 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id ot17-20020a17090b3b51b0290109c9ac3c34so17385726pjb.4 for ; Fri, 16 Apr 2021 19:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3y4uMJwxdfxzyakbODD1x0NzAbS7Yk2HNyccYDXmfCI=; b=uhJmRC/aYBTjuTZ2C05qdctiZJlM6K2Ig6e358l38mvItPTVNPJ3EWIJ7wdzpJB7vT 3e/HSVZWbU+nI4+hXfwZckvT6bb14TlDq9eunjskYgGcNQ1qH4Lcw09LFddKDgYbhYCF RAOWUn/MKlyD2nDbuEgMCLz4IBdvq5dQAtGJg+vcH9orrFRqHSnDSZ+Zua/A6i1cRvb2 FcflbOWw39G+FaGYnam0OICqLbAjA5ZhXpG+ww35/rmNZNbMX5nV+vLf06Xa8c5z/ieU zWfQY8oUDJH8N+5qWpAaO3fXbn6JGwVhRqcQh7Lvf9jdfZlLG7FIIE8XMl3w5lJkMq5c ukDQ== 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=3y4uMJwxdfxzyakbODD1x0NzAbS7Yk2HNyccYDXmfCI=; b=ph35MCZinilgfZRH02ZDPeTekGxqQe93i5PMwl62QbORnUkaPGyVo2ALOLaBdTtNrv 64cywE/Ws3jRlD1N01olZbbcOXk/nmgmTnU8eoNIkjTcKYyL8IdZRnL6CcErMW5klr8n GFwVROyzTBuPA6/rwZBlBggT8GIFl2ifSsz838Vyw9UQtuu4NA9HjWYU+BUEOzdrR/GV RPWFusT4mpgaGSGJKjJebIGco0xpBLE6Kzz4/ime0Cb4deSlnuWXjxzJZ1Txu9cddL0T A60zDR/n2edkDcUp5cD+k8B+eY3OC5CAtu4LIcsqRywn4sClpiCPPhTcLlUIauOfZqtB r2lw== X-Gm-Message-State: AOAM533kImL3QE8SZn5d+4MK7Yktj2fJQZ1iQ8TnfQZyjCVU2Q7fPyUT PFhydtxl6QMTKV2ZQDHvmBDX13xgks//oV9Fi0GBcQ== X-Received: by 2002:a17:90a:a895:: with SMTP id h21mr12995333pjq.13.1618627969184; Fri, 16 Apr 2021 19:52:49 -0700 (PDT) MIME-Version: 1.0 References: <20210416051407.54878-1-songmuchun@bytedance.com> <20210416051407.54878-6-songmuchun@bytedance.com> In-Reply-To: From: Muchun Song Date: Sat, 17 Apr 2021 10:52:12 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v2 5/8] mm: memcontrol: rename lruvec_holds_page_lru_lock to page_matches_lruvec To: Johannes Weiner Cc: Roman Gushchin , Michal Hocko , Andrew Morton , Shakeel Butt , Vladimir Davydov , LKML , Linux Memory Management List , Xiongchun duan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 11:20 PM Johannes Weiner wrote: > > On Fri, Apr 16, 2021 at 01:14:04PM +0800, Muchun Song wrote: > > lruvec_holds_page_lru_lock() doesn't check anything about locking and is > > used to check whether the page belongs to the lruvec. So rename it to > > page_matches_lruvec(). > > > > Signed-off-by: Muchun Song > > The rename makes sense, since the previous name was defined by a > specific use case rather than what it does. That said, it did imply a > lock context that makes the test result stable. Without that the > function could use a short comment, IMO. How about: > > /* Test requires a stable page->memcg binding, see page_memcg() */ Make sense. I will add this comment. > > With that, > Acked-by: Johannes Weiner Thanks.