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

From: Max Kellermann
Date: Thu Feb 15 2024 - 14:33:51 EST


On Thu, Feb 15, 2024 at 8:30 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> 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.