lkml.org 
[lkml]   [2015]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9 3/4] cgroups: allow a cgroup subsystem to reject a fork
Hello,

On Tue, Apr 14, 2015 at 10:33:41AM +1000, Aleksa Sarai wrote:
> Hi Tejun,
>
> > Ummm... is this really necessary? Can't we do something like the
> > following?
> >
> > #define SUBSYS_TAG(tag) \
> > __##tag, \
> > tag = __##tag - 2,
>
> Is which part necessary? That's what TAG() does. I can remove the

The complex macros.

> UNUSED_IDENT() if you want, that was just to make sure you don't get clashes
> with other unused idents. COUNT() is so that we don't have to manually add
> CGROUP_<TAG>_COUNT for every tag we add.

Let's please do the simple thing. It just takes one two-liner macro.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2015-04-14 15:01    [W:0.064 / U:5.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site