Re: [PATCH] cgroup: use new hashtable implementation

2013-01-08 Thread Li Zefan
On 2013/1/9 2:17, Tejun Heo wrote: > Hello, Li. > > On Tue, Jan 08, 2013 at 03:51:45PM +0800, Li Zefan wrote: >> -static struct hlist_head *css_set_hash(struct cgroup_subsys_state *css[]) >> +static unsigned long css_set_hash(struct cgroup_subsys_state *css[]) >> { >> int i; >> -int inde

Re: [PATCH] cgroup: use new hashtable implementation

2013-01-08 Thread Tejun Heo
Hello, Li. On Tue, Jan 08, 2013 at 03:51:45PM +0800, Li Zefan wrote: > -static struct hlist_head *css_set_hash(struct cgroup_subsys_state *css[]) > +static unsigned long css_set_hash(struct cgroup_subsys_state *css[]) > { > int i; > - int index; > - unsigned long tmp = 0UL; > +

[PATCH] cgroup: use new hashtable implementation

2013-01-07 Thread Li Zefan
Switch cgroup to use the new hashtable implementation. No functional changes. Signed-off-by: Li Zefan --- kernel/cgroup.c | 92 - 1 file changed, 39 insertions(+), 53 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 485589