[RFC PATCH v8 3/7] mm/filemap: Add mempolicy support to the filemap layer

Matthew Wilcox willy at infradead.org
Thu Jun 19 16:03:11 UTC 2025


On Wed, Jun 18, 2025 at 11:29:31AM +0000, Shivank Garg wrote:
> From: Shivansh Dhiman <shivansh.dhiman at amd.com>
> 
> Add NUMA mempolicy support to the filemap allocation path by introducing
> new APIs that take a mempolicy argument:
> - filemap_grab_folio_mpol()
> - filemap_alloc_folio_mpol()
> - __filemap_get_folio_mpol()

You don't use these APIs in this series, so I can't evaludate whether
any of my suggestiosn for improving this patch would actually work.
NACK.  Introduce the APIs *with a user*.  Come on, this isn't a new
requirement.



More information about the Linux-security-module-archive mailing list