Re: [PATCH v2] mm: shmem: fix getting incorrect lruvec when replacing a shmem folio

From: Matthew Wilcox
Date: Thu Jun 13 2024 - 23:22:32 EST


On Fri, Jun 14, 2024 at 08:49:13AM +0800, Baolin Wang wrote:
> * Charge @new as a replacement folio for @old. @old will
> - * be uncharged upon free. This is only used by the page cache
> - * (in replace_page_cache_folio()).
> + * be uncharged upon free. This is used by the page cache
> + * and shmem (in replace_page_cache_folio() and
> + * shmem_replace_folio()).

Please just delete this sentence. Functions do not keep track of who
their callers are.