Re: [PATCH 4/5] mm/vmalloc: Extend __find_vmap_area() with one more argument

From: Uladzislau Rezki
Date: Tue Jun 07 2022 - 09:03:58 EST


On Tue, Jun 7, 2022 at 11:47 AM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Tue, Jun 07, 2022 at 11:34:48AM +0200, Uladzislau Rezki (Sony) wrote:
> > __find_vmap_area() finds a "vmap_area" based on passed address.
> > It scan the specific "vmap_area_root" rb-tree. Extend the function
> > with one extra argument, so any tree can be specified where the
> > search has to be done.
>
> Uhh, why? This just adds a copletel useless argument.
>
I wrote about it in the cover latter. It is a preparation work for
making vmalloc per-cpu.
In that case free/busy data are located on different rb_roots that is
why those functions
have to be adopted to work with any tree.

--
Uladzislau Rezki