Re: [PATCH 1/7] mm: Store compound_nr as well as compound_order

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

 



On Mon, Jun 29, 2020 at 09:22:27AM -0700, Ira Weiny wrote:
> On Mon, Jun 29, 2020 at 04:19:53PM +0100, Matthew Wilcox wrote:
> >  static inline void set_compound_order(struct page *page, unsigned int order)
> >  {
> >  	page[1].compound_order = order;
> > +	page[1].compound_nr = 1U << order;
>                               ^^^
> 			      1UL?
> 
> Ira
> 
> > +++ b/include/linux/mm_types.h
> > @@ -134,6 +134,7 @@ struct page {
> >  			unsigned char compound_dtor;
> >  			unsigned char compound_order;
> >  			atomic_t compound_mapcount;
> > +			unsigned int compound_nr; /* 1 << compound_order */

                        ^^^^^^^^^^^^

No





[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