Message ID | 20231103140119.2306578-1-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
Headers | show |
Series | mm: convert to use folio mm counter | expand |
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.
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.