Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5190335ybl; Tue, 14 Jan 2020 05:07:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxYbz/I/445wpBn5Oy2w92dMmOSQ5dZA3oVAFOVhVL6njPFJVH4o/pxWln8XPNnDmyg7C1w X-Received: by 2002:a9d:7342:: with SMTP id l2mr16712062otk.98.1579007265831; Tue, 14 Jan 2020 05:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579007265; cv=none; d=google.com; s=arc-20160816; b=AT504j9DuFjGj3UpIbAvTKnlX54oQtFftlJ9PSS5yLdEupAOYWbQAOtf/TQlHy3kch thNDq+jqn9m1649utMXguFYLavc/5wjNk1F3KrYU5XAUPlAHYzcq44lePJlISxjFEORx WpmC951bNg7VyccOWwAl5M+8iW/DNgV8HtWyUYl7LIq+ChwTbvLmdBx6TsE5v0RnQmpG JzxwfMMksEhkXAnFiM/Nm8h0hG2KvyaeUrCHYdWNWOTqBp8tIEaf2icx7fhqT8xGbraF ayMy3+Qs40GMRGdvTgoZXjM9FicE6j7+2+uJ71K3ljJorfY02Wvg4u3qCDXA3DsOPMBl F8zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=tU7VGLa0WNOpT3czpdhllIPbQRPCVW10UqzNxpqrV+g=; b=jDu1/MJ3DkEat2kFmPeJ6p00W8yh4JxppqQwBvv244tP2crLobaQmCCMP/PXXfLO+d 5C6oZNHTBR2OENhkgZpKYD2L3zWZj58OBzPLUmKAwFFMkHFgPIAMTw3yP9xQQWr8zzzw 3R724KUXk/sc2xKI4PIOTeXw1gZ6DaSIT67X7kjvvyoaavpTdgKDpT3TJ94PbfYb7Z+u HA1loLK42wmfsnTrZ11KPhAiDtXPgFpGD4UaziE7k6vGqmkXh/Bt455rXPR+UiJ8ejdW Hx22+aHIk9TxZ2zbnRZOMr83bIR3b3lH90+ZiGlfS+xswL2zTSIM3PiUg+qFQNz8uXXT TnmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si8818394oti.273.2020.01.14.05.07.29; Tue, 14 Jan 2020 05:07:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728808AbgANNFq (ORCPT + 99 others); Tue, 14 Jan 2020 08:05:46 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:33596 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728057AbgANNFq (ORCPT ); Tue, 14 Jan 2020 08:05:46 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 16B3622E53E8E50BEE1A; Tue, 14 Jan 2020 21:05:43 +0800 (CST) Received: from [127.0.0.1] (10.74.221.148) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Tue, 14 Jan 2020 21:04:45 +0800 Subject: Re: [PATCH] cgroup: remove for_each_e_css To: Alex Shi References: <1579003772-46038-1-git-send-email-alex.shi@linux.alibaba.com> CC: Tejun Heo , Li Zefan , Johannes Weiner , , From: Shaokun Zhang Message-ID: <285c371f-da93-1bf1-4ace-5a74bb08ca5b@hisilicon.com> Date: Tue, 14 Jan 2020 21:04:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1579003772-46038-1-git-send-email-alex.shi@linux.alibaba.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.221.148] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, https://spinics.net/lists/cgroups/msg23131.html Thanks, On 2020/1/14 20:09, Alex Shi wrote: > After commit 37ff9f8f4742 ("cgroup: make cgroup[_taskset]_migrate() > take cgroup_r', No one use this macro. > So it'e better to remove. > > Signed-off-by: Alex Shi > Cc: Tejun Heo > Cc: Li Zefan > Cc: Johannes Weiner > Cc: cgroups@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > kernel/cgroup/cgroup.c | 15 --------------- > 1 file changed, 15 deletions(-) > > diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c > index 735af8f15f95..7d916ad33e59 100644 > --- a/kernel/cgroup/cgroup.c > +++ b/kernel/cgroup/cgroup.c > @@ -663,21 +663,6 @@ struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) > else > > /** > - * for_each_e_css - iterate all effective css's of a cgroup > - * @css: the iteration cursor > - * @ssid: the index of the subsystem, CGROUP_SUBSYS_COUNT after reaching the end > - * @cgrp: the target cgroup to iterate css's of > - * > - * Should be called under cgroup_[tree_]mutex. > - */ > -#define for_each_e_css(css, ssid, cgrp) \ > - for ((ssid) = 0; (ssid) < CGROUP_SUBSYS_COUNT; (ssid)++) \ > - if (!((css) = cgroup_e_css_by_mask(cgrp, \ > - cgroup_subsys[(ssid)]))) \ > - ; \ > - else > - > -/** > * do_each_subsys_mask - filter for_each_subsys with a bitmask > * @ss: the iteration cursor > * @ssid: the index of @ss, CGROUP_SUBSYS_COUNT after reaching the end >