Re: [PATCH] mm: split out anon_vma declarations to separate header

From: Matthew Wilcox
Date: Sat Dec 04 2021 - 18:59:23 EST


On Sat, Dec 04, 2021 at 06:42:17PM +0100, Arnd Bergmann wrote:
> This should not really be part of linux/mm_types.h in the first
> place, as that header is meant to only contain structure defintions
> and need a minimum set of indirect includes itself. While the
> header clearly includes more than it should at this point, let's
> not make it worse by including string.h as well, which would
> pull in the expensive (compile-speed wise) fortify-string logic.
>
> Move the new functions to a separate header that is only included
> where necessary to avoid bloating linux/mm_types.h further.

We already have an mm_inline.h. Why do we need a new header file?