Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6707611pxv; Thu, 29 Jul 2021 23:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7JrA2hjtjyuzNY0tdq8pRyla/D23kbEd21D9lrfPJQWbT1uAjt+ONumvZx+MxIIhbnnNn X-Received: by 2002:a17:907:9871:: with SMTP id ko17mr1133992ejc.179.1627627642138; Thu, 29 Jul 2021 23:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627627642; cv=none; d=google.com; s=arc-20160816; b=dAebweox1nZcrOdhGzUperGbynZOBBj2e09iE7FY/BSVEDgCl8Vg642NSSm7+TpZPK 607ngrTa+y38ixtmQ8IbyUeOl86l4K6Z44zkBdWk1NeWsuWDCF8qwstelm4r44MLf/NL KWK7bP0HaErhLnrQULsAOvkKMkgnd7sq6TNzKnW5+UutFTBL2JGK9FIneYkYPdr6RszK Vl224bhG7lTvRk2aCdIZA81RB6mNVA0eI5PPuTPPzajZ37EQxu5xAzM3T03UYWdDG3Ss Z0RYzsVVa4jnd6JPfkBj92oo1BVquBslt8PB7iGLvc+65em7SsDhVjehgPC15s40U2Xe sX0A== 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=WGSyxiu3mrpSdkjXI3OCcCS7NGg99qcrN67xRlpt+bI=; b=Jm+PZg2MjtmyfgsAZQwoLpNSCKU5ZW01bY/IIu6q8RSMi74IN0kIyLZjLfFMSAFX5l +EcloXOLnbXfQC0MZy5GDysuwkzFf28W1vv6Sf9QZvojFi+DgHd5W23jaM+OEd4xYc6l cJLmvOPmI2vFysnyuSPQuftwMdKNny8T/uXkCxqhylu2UKXjhCVspH4uJyH3eadmKsyh +RShAVwmR6Bl4dGahujU7Oz2qIIRf2kPLKVQ6nlQTrBov6J4Y1pkPfQ+wjKL2lh2E4ec A9Isxq+0aJ2w3NGPgMASBtg7EzAMUzAQv/bAOcZlEUfRQrDwpdXMxZyNVa2Lhy3XBXlX 85Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=IWh87Tmk; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si831891edv.453.2021.07.29.23.46.59; Thu, 29 Jul 2021 23:47:22 -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=@suse.com header.s=susede1 header.b=IWh87Tmk; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237556AbhG3GpS (ORCPT + 99 others); Fri, 30 Jul 2021 02:45:18 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:41458 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237205AbhG3GpS (ORCPT ); Fri, 30 Jul 2021 02:45:18 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 1187F1FDB1; Fri, 30 Jul 2021 06:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1627627513; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WGSyxiu3mrpSdkjXI3OCcCS7NGg99qcrN67xRlpt+bI=; b=IWh87TmkxKW563aoJcyB30+0gBdeVgoR4oJhyn/AYZvZFSpSJXs26QYdLwE5pjm4gdPxBa hzHiMc9UMDaYVP718QqWr/dn9w7IizFkFnIHAKFFvOfwzZNUDRrGAKFN8A0EdbAuy5/vSv JbSeOr284ji3GsEFA12JxCn9klheDSo= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id C9291A3B88; Fri, 30 Jul 2021 06:45:12 +0000 (UTC) Date: Fri, 30 Jul 2021 08:45:12 +0200 From: Michal Hocko To: Miaohe Lin Cc: hannes@cmpxchg.org, vdavydov.dev@gmail.com, akpm@linux-foundation.org, shakeelb@google.com, guro@fb.com, willy@infradead.org, alexs@kernel.org, richard.weiyang@gmail.com, songmuchun@bytedance.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 1/5] mm, memcg: remove unused functions Message-ID: References: <20210729125755.16871-1-linmiaohe@huawei.com> <20210729125755.16871-2-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210729125755.16871-2-linmiaohe@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 29-07-21 20:57:51, Miaohe Lin wrote: > Since commit 2d146aa3aa84 ("mm: memcontrol: switch to rstat"), last user > of memcg_stat_item_in_bytes() is gone. And since commit fa40d1ee9f15 ("mm: > vmscan: memcontrol: remove mem_cgroup_select_victim_node()"), only the > declaration of mem_cgroup_select_victim_node() is remained here. Remove > them. > > Signed-off-by: Miaohe Lin Acked-by: Michal Hocko > --- > include/linux/memcontrol.h | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index 7028d8e4a3d7..04437504444f 100644 > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -606,13 +606,6 @@ static inline bool PageMemcgKmem(struct page *page) > return folio_memcg_kmem(page_folio(page)); > } > > -static __always_inline bool memcg_stat_item_in_bytes(int idx) > -{ > - if (idx == MEMCG_PERCPU_B) > - return true; > - return vmstat_item_in_bytes(idx); > -} > - > static inline bool mem_cgroup_is_root(struct mem_cgroup *memcg) > { > return (memcg == root_mem_cgroup); > @@ -916,11 +909,6 @@ static inline bool mem_cgroup_online(struct mem_cgroup *memcg) > return !!(memcg->css.flags & CSS_ONLINE); > } > > -/* > - * For memory reclaim. > - */ > -int mem_cgroup_select_victim_node(struct mem_cgroup *memcg); > - > void mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru, > int zid, int nr_pages); > > -- > 2.23.0 -- Michal Hocko SUSE Labs