login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
28
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Paul Menage
Subject:
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
Date: Thursday, October 28, 2010 - 4:34 pm
On Fri, Oct 22, 2010 at 1:09 AM, Li Zefan <lizf@cn.fujitsu.com> wrote:
quoted text
> On x86_32, sizeof(struct cgroup_subsys) shrinks from 276 bytes > to 264. > > Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com> Maybe use "bool" here? Paul
quoted text
> --- > include/linux/cgroup.h | 10 ++++++---- > 1 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > index ed4ba11..e23ded6 100644 > --- a/include/linux/cgroup.h > +++ b/include/linux/cgroup.h > @@ -481,14 +481,16 @@ struct cgroup_subsys { > void (*bind)(struct cgroup_subsys *ss, struct cgroup *root); > > int subsys_id; > - int active; > - int disabled; > - int early_init; > + > + unsigned int active:1; > + unsigned int disabled:1; > + unsigned int early_init:1; > /* > * True if this subsys uses ID. ID is not available before cgroup_init() > * (not available in early_init time.) > */ > - bool use_id; > + unsigned int use_id:1; > + > #define MAX_CGROUP_TYPE_NAMELEN 32 > const char *name; > > -- > 1.7.0.1 > >
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/7] cgroups: Allow to bind/unbind subsystems to/fr ...
, Li Zefan
, (Fri Oct 22, 1:09 am)
[PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Li Zefan
, (Fri Oct 22, 1:09 am)
[PATCH 2/7] cgroups: Allow to bind a subsystem to a cgroup ...
, Li Zefan
, (Fri Oct 22, 1:09 am)
[PATCH 3/7] cgroups: Allow to unbind subsystem from a cgro ...
, Li Zefan
, (Fri Oct 22, 1:10 am)
[PATCH 4/7] cgroups: Mark some subsystems bindable
, Li Zefan
, (Fri Oct 22, 1:11 am)
[PATCH 5/7] cgroups: Make freezer subsystem bindable
, Li Zefan
, (Fri Oct 22, 1:11 am)
[PATCH 6/7] cgroups: Warn if a bindable subsystem calls cs ...
, Li Zefan
, (Fri Oct 22, 1:12 am)
[PATCH 7/7] cgroups: Update documentation for bindable sub ...
, Li Zefan
, (Fri Oct 22, 1:12 am)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Peter Zijlstra
, (Fri Oct 22, 5:47 am)
Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems t ...
, Peter Zijlstra
, (Fri Oct 22, 5:50 am)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable
, Matt Helsley
, (Fri Oct 22, 1:57 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Matt Helsley
, (Fri Oct 22, 2:38 pm)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable
, Matt Helsley
, (Fri Oct 22, 2:46 pm)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable
, Matt Helsley
, (Fri Oct 22, 2:57 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, KAMEZAWA Hiroyuki
, (Sun Oct 24, 5:36 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, Li Zefan
, (Sun Oct 24, 5:52 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, Li Zefan
, (Sun Oct 24, 5:56 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Li Zefan
, (Sun Oct 24, 5:59 pm)
Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems t ...
, Li Zefan
, (Sun Oct 24, 6:07 pm)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable
, Li Zefan
, (Sun Oct 24, 6:15 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Li Zefan
, (Sun Oct 24, 6:23 pm)
Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems t ...
, Paul Menage
, (Thu Oct 28, 4:33 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Paul Menage
, (Thu Oct 28, 4:34 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Paul Menage
, (Thu Oct 28, 4:55 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Paul Menage
, (Thu Oct 28, 4:57 pm)
Re: [PATCH 3/7] cgroups: Allow to unbind subsystem from a ...
, Paul Menage
, (Thu Oct 28, 5:02 pm)
Re: [PATCH 6/7] cgroups: Warn if a bindable subsystem call ...
, Paul Menage
, (Thu Oct 28, 5:05 pm)
Re: [PATCH 5/7] cgroups: Make freezer subsystem bindable
, Paul Menage
, (Thu Oct 28, 5:06 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, Paul Menage
, (Thu Oct 28, 5:13 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, Paul Menage
, (Thu Oct 28, 5:15 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Li Zefan
, (Sun Nov 7, 10:23 pm)
Re: [PATCH 2/7] cgroups: Allow to bind a subsystem to a cg ...
, Li Zefan
, (Sun Nov 7, 10:26 pm)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ...
, Li Zefan
, (Sun Nov 7, 10:27 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Paul Menage
, (Tue Nov 9, 2:05 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Li Zefan
, (Tue Nov 9, 5:52 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Paul Menage
, (Tue Nov 9, 6:53 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Li Zefan
, (Tue Nov 9, 7:06 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys
, Paul Menage
, (Tue Nov 9, 7:15 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pekka Enberg
Re: BUG in free_block (tainted)
Rafael J. Wysocki
[Bug #16136] Linux 2.6.34 causes system lockup on Compaq Presario 2200 Laptop
Joerg Roedel
Re: [patch] dma-debug: off by one issue
Tetsuo Handa
Re: [AppArmor #7 0/13] AppArmor security module
Jakub Narebski
Re: [PATCH] gitweb: Fix shortlog only showing HEAD revision.
git
:
Christian Stimming
git-gui: Fix broken revert confirmation.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: git-svnimport
Henk
Announcement: Git Extensions stable (windows shell extensions)
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Amit Kumar Salecha
[PATCH NEXT 10/10] qlcnic: add cksum flag
Julius Volz
[PATCH] IRDA: Fix genlmsg_put() return value check.
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
Linux Kernel Mailing List
virtio_blk: implement naming for vda-vdz,vdaa-vdzz,vdaaa-vdzzz
Linux Kernel Mailing List
[POWERPC] Use of_register_driver to implement of_register_platform_driver
openbsd-misc
:
Ryan McBride
Re: Packets Per Second Limit?
Stuart Henderson
Re: SquidGuard problem
Henning Brauer
Re: 3ware hardware raid support?
nixlists
Re: Openssl patch breaks Tor
Nick Guenther
Re: Encrypting home partition
Colocation donated by:
Syndicate