Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755246AbbG1Gk0 (ORCPT ); Tue, 28 Jul 2015 02:40:26 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:48215 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbbG1GkZ (ORCPT ); Tue, 28 Jul 2015 02:40:25 -0400 Message-ID: <55B723A8.1080201@huawei.com> Date: Tue, 28 Jul 2015 14:39:36 +0800 From: Zefan Li User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Tejun Heo CC: , , , , , , Subject: Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name References: <1437763434-28699-1-git-send-email-tj@kernel.org> <1437763434-28699-3-git-send-email-tj@kernel.org> In-Reply-To: <1437763434-28699-3-git-send-email-tj@kernel.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.18.230] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 683 Lines: 20 > @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts) > } > > for_each_subsys(ss, i) { > - if (strcmp(token, ss->name)) > + if (strcmp(token, ss->name) && > + strcmp(token, ss->legacy_name)) > continue; As mounting with specified subsystems is only allowed in legacy hierarchy, I think we should allow using leagcy name only? > if (ss->disabled) > continue; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/