Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-29 Thread Igor Stoppa
On 25/10/2018 03:13, Matthew Wilcox wrote: On Thu, Oct 25, 2018 at 02:01:02AM +0300, Igor Stoppa wrote: @@ -1747,6 +1750,10 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, if (!addr) return NULL; + va = __find_vmap_area((unsigned long)addr);

Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-24 Thread Matthew Wilcox
On Thu, Oct 25, 2018 at 02:01:02AM +0300, Igor Stoppa wrote: > > > @@ -1747,6 +1750,10 @@ void *__vmalloc_node_range(unsigned long size, > > > unsigned long align, > > > if (!addr) > > > return NULL; > > > + va = __find_vmap_area((unsigned long)addr); > > > + for (i = 0

Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-24 Thread Igor Stoppa
On 24/10/2018 06:12, Matthew Wilcox wrote: On Wed, Oct 24, 2018 at 12:34:55AM +0300, Igor Stoppa wrote: The connection between each page and its vmap_area avoids more expensive searches through the btree of vmap_areas. Typo -- it's an rbtree. ack +++ b/include/linux/mm_types.h @@ -87,13

Re: [PATCH 08/17] prmem: struct page: track vmap_area

2018-10-23 Thread Matthew Wilcox
On Wed, Oct 24, 2018 at 12:34:55AM +0300, Igor Stoppa wrote: > The connection between each page and its vmap_area avoids more expensive > searches through the btree of vmap_areas. Typo -- it's an rbtree. > +++ b/include/linux/mm_types.h > @@ -87,13 +87,24 @@ struct page { >