On 6/19/2025 9:33 PM, Matthew Wilcox wrote: > On Wed, Jun 18, 2025 at 11:29:31AM +0000, Shivank Garg wrote: >> From: Shivansh Dhiman <shivansh.dhi...@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. Hi willy, Thank you for the feedback. filemap_grab_folio_mpol() is used in [Patch 6/7] in kvm_gmem_prepare_folio(). filemap_alloc_folio_mpol() and __filemap_get_folio_mpol()) are internally used to support the filemap_grab_folio_mpol(). Thanks, Shivank
- [RFC PATCH v8 0/7] Add NUMA mempolicy support for KVM gues... Shivank Garg
- [RFC PATCH v8 1/7] security: Export anon_inode_make_s... Shivank Garg
- [RFC PATCH v8 2/7] KVM: guest_memfd: Use guest mem in... Shivank Garg
- [RFC PATCH v8 3/7] mm/filemap: Add mempolicy support ... Shivank Garg
- Re: [RFC PATCH v8 3/7] mm/filemap: Add mempolicy ... Vlastimil Babka
- Re: [RFC PATCH v8 3/7] mm/filemap: Add mempolicy ... Matthew Wilcox
- Re: [RFC PATCH v8 3/7] mm/filemap: Add mempol... Shivank Garg
- Re: [RFC PATCH v8 3/7] mm/filemap: Add me... Vlastimil Babka
- [RFC PATCH v8 5/7] KVM: guest_memfd: Add slab-allocat... Shivank Garg
- [RFC PATCH v8 6/7] KVM: guest_memfd: Enforce NUMA mem... Shivank Garg
- [RFC PATCH v8 4/7] mm/mempolicy: Export memory policy... Shivank Garg
- Re: [RFC PATCH v8 4/7] mm/mempolicy: Export memor... Gregory Price
- Re: [RFC PATCH v8 4/7] mm/mempolicy: Export m... Shivank Garg
- Re: [RFC PATCH v8 4/7] mm/mempolicy: Expo... Vlastimil Babka
- [RFC PATCH v8 7/7] KVM: guest_memfd: selftests: Add t... Shivank Garg