Re: [PATCH v4 07/16] slub: Remove page->counters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2 May 2018, Matthew Wilcox wrote:

> > > Option 2:
> > > +                       union {
> > > +                               unsigned long counters;
> > > +                               struct {
> > > +                                       unsigned inuse:16;
> > > +                                       unsigned objects:15;
> > > +                                       unsigned frozen:1;
> > > +                               };
> > > +                       };
> > >
> > > Pro: Expresses exactly what we do.
> > > Con: Back to five levels of indentation in struct page

I like that better. Improves readability of the code using struct page. I
think that is more important than the actual definition of struct page.

Given the overloaded overload situation this will require some deep
throught for newbies anyways. ;-)





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux