Re: [PATCH v1 09/14] linux/mm.h: move usage count functions to mm/page_usage.h

Max Kellermann
2024-02-15T19:33:41Z

On Thu, Feb 15, 2024 at 8:30 PM Matthew Wilcox <willy@infradead.org> wrote:
> Why does this want to be its own header instead of being part of
> page_ref.h?

Because I thought page_ref.h was a low-level header and the new one
would be higher-level with (slightly) heavier dependencies. Keeping
different layers of code in separate headers helps keeping
dependencies lean. I used the term "usage" from the explanatory
comment at the top. I'll amend the patch description to explain that
detail.