Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754590Ab0KJCPk (ORCPT ); Tue, 9 Nov 2010 21:15:40 -0500 Received: from smtp-out.google.com ([74.125.121.35]:37084 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753733Ab0KJCPh (ORCPT ); Tue, 9 Nov 2010 21:15:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UT7vIW8uM+/2KJ2Wc0XCCesuzKR3nyotAm58qelEhP+bkyXouWWX4avrMkvcSSS9VT B6rb59QfaE445LchDTaw== MIME-Version: 1.0 In-Reply-To: <4CD9FE2D.2070108@cn.fujitsu.com> References: <4CC146A4.9090505@cn.fujitsu.com> <4CC146BA.7080009@cn.fujitsu.com> <4CD78946.5060405@cn.fujitsu.com> <4CD9ECD2.3030805@cn.fujitsu.com> <4CD9FE2D.2070108@cn.fujitsu.com> From: Paul Menage Date: Tue, 9 Nov 2010 18:15:13 -0800 Message-ID: Subject: Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys To: Li Zefan Cc: "akpm >> Andrew Morton" , Stephane Eranian , LKML , containers@lists.linux-foundation.org Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 20 On Tue, Nov 9, 2010 at 6:06 PM, Li Zefan wrote: > That said, I'll happily drop this patch. It just came to me when I > started to add new bool values to the structure. Or if you prefer > bool xxx:1 or just bool xxx, I can do that. bool xxx:1 is fine with me - I think it's worth keeping the semantics of these being boolean flags as obvious as possible. I just wouldn't invest much effort in similar patches in the future (given that there are only likely to be, what, <20 instances of cgroup_subsys in the kernel?). Shrinking a structure that had potentially very many instances, such as css_set or cg_cgroup_link, would be different of course. Paul -- 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/