]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/filemap: Add NUMA mempolicy support to filemap_alloc_folio()
authorMatthew Wilcox <willy@infradead.org>
Wed, 27 Aug 2025 17:52:43 +0000 (17:52 +0000)
committerSean Christopherson <seanjc@google.com>
Mon, 20 Oct 2025 13:30:25 +0000 (06:30 -0700)
commit7f3779a3ac3e474d043f0a2b77dd6e6bb020c577
tree303f62fea267c92b6fa9dfa31bb37b96ef4edea8
parent211ddde0823f1442e4ad052a2f30f050145ccada
mm/filemap: Add NUMA mempolicy support to filemap_alloc_folio()

Add a mempolicy parameter to filemap_alloc_folio() to enable NUMA-aware
page cache allocations. This will be used by upcoming changes to
support NUMA policies in guest-memfd, where guest_memory need to be
allocated NUMA policy specified by VMM.

All existing users pass NULL maintaining current behavior.

Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Shivank Garg <shivankg@amd.com>
Tested-by: Ashish Kalra <ashish.kalra@amd.com>
Link: https://lore.kernel.org/r/20250827175247.83322-4-shivankg@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
fs/btrfs/compression.c
fs/btrfs/verity.c
fs/erofs/zdata.c
fs/f2fs/compress.c
include/linux/pagemap.h
mm/filemap.c
mm/readahead.c