Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2795008pxb; Tue, 13 Apr 2021 10:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZyTryeXGJJwDWDkh4gLFl43KffZt/IL8GYuTfTMjqlmMlVcIbKVHeUC+YlRzWAPWTQpeO X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr35825240edy.179.1618334228244; Tue, 13 Apr 2021 10:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618334228; cv=none; d=google.com; s=arc-20160816; b=AWg9QpUnfYsriKBy9ogiLFWRGO5DGojJGNxP9eqdb7MaHSIiSbQm7b0lDWatBic22N QpLGoclNV0EwDhVxNij0h/Z0QMx/o8C6I8j2hyWH585Zn1AMdsXvGHW90CnU4PjRysg6 JCNOqZqMj8sUxfx24DQvQr825vWl4jb+8RIPTuEj7XKoaitlX7h7GH54rVKv8n6CuSN7 44ZeSSFllRKfYJkoFzITR/w+sQFkZzwWbkY8PoUiH7+bdhQfIUNwTLVk1P2mQ+MvDSBQ 61jtYj9ezgX/YvVYH5Wg3DUFDuLASle3XB9rBhXhr7S7d5ZhMU/j4GrhBnGvNp8AeNZf aGNg== 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=uvM1xLNFtbjboqLjbQwMRXz9XirPXm1IZpwvJNf/xI4=; b=CPoCia5nooj3zWpwuZNsrQxDeDQTVC3P0AtMmtzYpU2JiDaZ3HZJq73STzSgpp/9TQ dZQZ+RbXhYR9RfmvcOwc5RdcUmoJOVSI3cTLfI7TrqN4CMXqcoKIg8xWAQDI9A0K/2Pu RT6+zstd/MFcdjuffDifBtpeLBr3wsgkSRW3oPFUOKz0mL1Ia4hN1t+XUDAqefj1SohS eAh6sdQo9oD7ocd8F2sKl4X39IRCTMDMBH2LhYpkcXXnj+7YuYq6hTxCmPvKjHH92AM7 0tXC8yKhVlRWPBdfJiL5UgB/QoUoKRl3GaO5GhyJqjFQwzJaFotaVmSEcDpH5K/0FhdW cL2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lQZzbGEf; 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 cw8si9133071ejc.338.2021.04.13.10.16.43; Tue, 13 Apr 2021 10:17:08 -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=lQZzbGEf; 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 S243347AbhDMNN2 (ORCPT + 99 others); Tue, 13 Apr 2021 09:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbhDMNN1 (ORCPT ); Tue, 13 Apr 2021 09:13:27 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3961C061574 for ; Tue, 13 Apr 2021 06:13:07 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id l22so11925579ljc.9 for ; Tue, 13 Apr 2021 06:13:07 -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=uvM1xLNFtbjboqLjbQwMRXz9XirPXm1IZpwvJNf/xI4=; b=lQZzbGEfuKkQNZ0EyqnQ+GDHJ632xxU1Ko4KVYLh7r2DgevxDm8Ixs5cgBJbOY11bY aKSQD78mYWqTJYDhDZH7ZXQMqQHl/OPQX1o/RRH8ez+cRwjDu9Air/9t29L4nsiCx4H8 WBH9B89PlSK0j8MzsWkjcc3Yd2niQQ/+m1GyopJpOLu57BDCqUgftJ5Ofvdge8xQCsPR 2ZYiyBTIZgviLzV+oPn8mE8FXD0d5am7aTV7b3j6tcQ/HYI1efje9k2T96dLQJ75xPo/ KJx1g1MdRXU85Mrmd+C6idriGcclZaSthpPTMiKS0NzTntPodW8U1ID8rmI6KvcV70Gd V2gQ== 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=uvM1xLNFtbjboqLjbQwMRXz9XirPXm1IZpwvJNf/xI4=; b=gwsXCORY+qCWeUIiPNjcFIibHEVy7NaZhPLwBczThDE/YiEtgr21hDSMy9k8uhRE37 7a4xpEoYYDm920FMKKy8wERqEtLHRgE66oDOy9t54P6MZ+QQ3lNL6Z0rRRScvQ/yi/Qx ZZT74V2dVkvauBx9pR7H5yrEcVmCbjEQuxqtRYHIX/G+QA7EMG2LdzHU1UUI037nc0Jg OjlYmwUUJOVKWP8M/odSjHfWKWjrSw/+qamIaitxbTP42eJQhQSQpSHBWGS63ZYaQzHv WRgB1j8pthNsNAmnEq/MA0oYOtlTm4l8CeXIl7ELVdjo6FUQ/f8id6fhsp93d4oxCQmB 088Q== X-Gm-Message-State: AOAM530lFKe2k20tXpRg6EdAkcnUILaSACjdJQXIWTD/CmpfBO+tvGP5 aQsf2ebowQBD4+Qj1FlFUGG1g9cM+pfOHB4J8I3XwA== X-Received: by 2002:a2e:968a:: with SMTP id q10mr10830963lji.0.1618319585941; Tue, 13 Apr 2021 06:13:05 -0700 (PDT) MIME-Version: 1.0 References: <20210413065153.63431-1-songmuchun@bytedance.com> <20210413065153.63431-4-songmuchun@bytedance.com> In-Reply-To: <20210413065153.63431-4-songmuchun@bytedance.com> From: Shakeel Butt Date: Tue, 13 Apr 2021 06:12:54 -0700 Message-ID: Subject: Re: [PATCH 3/7] mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvec To: Muchun Song Cc: Roman Gushchin , Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , LKML , Linux MM , Xiongchun duan , fam.zheng@bytedance.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 11:57 PM Muchun Song wrote: > > All the callers of mem_cgroup_page_lruvec() just pass page_pgdat(page) > as the 2nd parameter to it (except isolate_migratepages_block()). But > for isolate_migratepages_block(), the page_pgdat(page) is also equal > to the local variable of @pgdat. So mem_cgroup_page_lruvec() do not > need the pgdat parameter. Just remove it to simplify the code. > > Signed-off-by: Muchun Song > Acked-by: Johannes Weiner Reviewed-by: Shakeel Butt