Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp980488pxb; Fri, 22 Apr 2022 15:51:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxIXO5aSwE6psQndvVj26nXUdLSIglyh6YV8FUXxGr900Jis4D2c9g74+miP2fN03MJhJ+ X-Received: by 2002:a17:90b:3903:b0:1d2:c8ea:4c9c with SMTP id ob3-20020a17090b390300b001d2c8ea4c9cmr7788250pjb.210.1650667899367; Fri, 22 Apr 2022 15:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667899; cv=none; d=google.com; s=arc-20160816; b=s2rH37le88NEC4q89LUjQGD9LtS/LRpp3BRKhAiDeDDw0bkGSTXeV++ncTFB5DsMl4 vya74kVD7PAmVhlEAR2gbzJ95SEJLxrU2G7t28ueEOV/JxoqBuiJIy/ZfnPKXxzz+Ux3 54z9IcAq8BInLbwXjXstexQZgJQJ7xojwRJ8ox/nbbE/ocXPp3jMCzzVGfTLkDDwxe6F N7wv8jHr0NFj07FkM7on0uHMZIo53SEBzr6rHao6+9ePYmheYBNm7OWxUwtlvUBH89dZ OzCJSRv470a3+tZy7zBXetiF/XzH/2G0YZagy8GHXCxFTKy+srCQbz0HkSTRMUe/cPr4 5CMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xZMCVPcYFV3B+SKd3NEIMAMCeRNJPyaeLFKLuEeo51c=; b=FWft8SQV3CjV7oy0IGC/Y8KVkWUl1CcUkgHEkyJvzeSLVP5v+gGnKfMnPilhbb/oQj 0CS/RIzjO1HOBSKdgBK8MJwYkM5HZleN4aC+PajBk4+rrPTkHTWCoEMdz+7kC8+wnm1y Go2lxCtsk0nwpwGuHkKy1okf1BxnKtiw3c3346NaqitvlIwEEMhtCP7ykNUuTHTsBt1K 2loTX4BjS14fJr1zL1lybcWz3WEIbQbsYcW7f0up9eM5YPVulx60NY11YPaEFacORonl 5TXL3WgdIyHXwXPkVgEuP12ctptO1G9X8tjg0/F+0uTqF9vFQZorI2+pa9V1xHpXLRXj 0/ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=q3lCCATK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x10-20020a1709027c0a00b00153b2d1663dsi8845193pll.581.2022.04.22.15.51.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=q3lCCATK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1A3C25B40C; Fri, 22 Apr 2022 13:41:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389141AbiDUOZD (ORCPT + 99 others); Thu, 21 Apr 2022 10:25:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377277AbiDUOZB (ORCPT ); Thu, 21 Apr 2022 10:25:01 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA2D3CA61 for ; Thu, 21 Apr 2022 07:22:11 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id x12so3309866qtp.9 for ; Thu, 21 Apr 2022 07:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xZMCVPcYFV3B+SKd3NEIMAMCeRNJPyaeLFKLuEeo51c=; b=q3lCCATKuv+Uf5ChmHextg+VIYRg7sglu2vtz03zUPGFsDXhO7asAMZtk1H9E/JnDr YibqlpDokwcpSiIdJL8QeVip38kYFCQ2xBWbysfUDwU2V/NRfUkI9/PsfsKYxDZpQ1mb r5AXLmwCXYxLFzrCecn/0Y6Au873M0CBj+0vEC9orZ/LT+dE/GvFDYw3rgIA8Op4LCHN X0zzweG7A0C3beYpMXbFFw6IKQHaInfwnSTOD6NPwJN7YTK+tGVujdGsHuUJ2H+myjpT S6/znAKKqrEvzcWQ1qKqblw6q/aLFBRAYuB9f3t7HhAqRizq4t2KEezpyBvq6OLqFbzI JAfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xZMCVPcYFV3B+SKd3NEIMAMCeRNJPyaeLFKLuEeo51c=; b=h3/AKirPxtDDsQpWICRoiwgxChZWa04ERK1RhYMsMhLdFsLfqvHL4paP9jgr+/2FWi ajk2P/Vg0R4ysebI3VOX9OFCB9yqeVurDDUoBV/slOJ/lvdtZ6V5duP4sAC76b7a5lMi AQR/LntOwMv4Og5iA2PWwd2ELWg/dnb8+/+yt3m8WkrSL+2UxTrjHxWAeh4tjc8IL6Ig X5IrsWUGq1XPREwEXojFZ/LfsUsNyHHdqzXnUfw5GFJ/4hKgiwzASIlq6q9NFmMg2OuJ zjjVWHaqnQkdP0hqv9JRaXSFeJknZbiSWuTFLd/dmL8ATLySDe8yK79YiXzMdvZhyr2S VB1g== X-Gm-Message-State: AOAM531dHCIJ0FmrvPhNUla5HbHEsRzCtm67QLSYkMFEsgG1Z4xY6geU Vbaad+SJLekGGarSluneSLw3rezCJXmxAA== X-Received: by 2002:ac8:5905:0:b0:2f2:480:ef2e with SMTP id 5-20020ac85905000000b002f20480ef2emr11909254qty.272.1650550930673; Thu, 21 Apr 2022 07:22:10 -0700 (PDT) Received: from localhost (cpe-98-15-154-102.hvc.res.rr.com. [98.15.154.102]) by smtp.gmail.com with ESMTPSA id n11-20020a05622a11cb00b002f344f11849sm2096485qtk.71.2022.04.21.07.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 07:22:10 -0700 (PDT) Date: Thu, 21 Apr 2022 10:22:09 -0400 From: Johannes Weiner To: Lu Jialin Cc: Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Matthew Wilcox , Yang Shi , Suren Baghdasaryan , Vlastimil Babka , Wang Weiyang , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH -next] mm/memcontrol.c: make cgroup_memory_noswap static Message-ID: References: <20220421124736.62180-1-lujialin4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421124736.62180-1-lujialin4@huawei.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 08:47:36PM +0800, Lu Jialin wrote: > cgroup_memory_noswap is only used in mm/memcontrol.c, therefore just make > it static, and remove export in include/linux/memcontrol.h > > Signed-off-by: Lu Jialin Nice. Unused since 2d1c498072de ("mm: memcontrol: make swap tracking an integral part of memory control"), which removed the two instances from mm/swap_cgroup.c. Acked-by: Johannes Weiner