Re: [PATCH rfc 00/18] mm: convert to use folio mm counter

From: Kefeng Wang
Date: Fri Nov 03 2023 - 23:59:01 EST




On 2023/11/3 22:30, Matthew Wilcox wrote:
On Fri, Nov 03, 2023 at 10:01:01PM +0800, Kefeng Wang wrote:
Convert mm counter page functions to folio ones.

mm_counter() -> mm_counter_folio()
mm_counter_file() -> mm_counter_file_folio()

Maybe it's better to rename folio mm counter function back to mm_counter()
and mm_counter_file() after all conversion?

I deliberately didn't do this because it's mostly churn.
Once all callers of mm_counter() and mm_counter_file() have been
converted to use folios, we can do one big patch to convert all
callers to pass a folio instead of a page.

I re-order the patches as you say, please help to check v2, thanks.