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