[Devel] Re: [ckrm-tech] [PATCH 6/7] BC: kernel memory (core)

Dave Hansen haveblue at us.ibm.com
Tue Sep 5 09:21:34 PDT 2006


On Mon, 2006-09-04 at 16:23 +0400, Kirill Korotaev wrote:
> 
> are you suggesting the code like this:
> >>+#ifdef CONFIG_BEANCOUNTERS
> >>+       union {
> >>+               struct beancounter      *page_bc;
> >>+       };
> >>+#endif
> >> }; 
> 
> #define page_bc(page)   ((page)->page_bc) 

That would be a bit better.  Although, I think the "page_" bit is also
superfluous.

-- Dave




More information about the Devel mailing list