Re: [PATCH RFC 13/13] mm/huge_memory: count only swap cache refs in anon folio split
"Zi Yan" <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <[email protected]> |
On Fri Aug 7, 2026 at 5:17 PM EDT, Kairui Song via B4 Relay wrote: > From: Kairui Song <[email protected]> > > Only __folio_freeze_split_unmap() sees anon folios and swap cache folios > now. The file split helper only handles page cache folios, which hold > exactly folio_nr_pages() references. > > Rename folio_cache_ref_count() to folio_swapcache_ref_count() and drop > the anon check so the helper counts what its name says. The file split > helper now uses folio_nr_pages() directly. > > Signed-off-by: Kairui Song <[email protected]> > --- > mm/huge_memory.c | 35 +++++++++++++++-------------------- > 1 file changed, 15 insertions(+), 20 deletions(-) > LGTM. Thanks. Reviewed-by: Zi Yan <[email protected]> -- Best Regards, Yan, Zi