On 6/20/2025 8:04 PM, Matthew Wilcox wrote: > On Fri, Jun 20, 2025 at 11:29:20AM +0530, Shivank Garg wrote: >> 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(). > > That's not better. We don't add unused functions, and unless there's > something coming that's going to use them, the entire structure of this > is wrong. > > filemap_grab_folio() is a convenience function that avoids us having to > specify the other two arguments to __filemap_get_folio(). Since there's > no indication at this point that there are going to be more callers of > it, filemap_grab_folio_mpol() should not even exist. > > I'll send a pair of patches which should be sufficient for your needs. Thank you willy :) I'll them add to my series. Thanks, Shivank
- [RFC PATCH v8 0/7] Add NUMA mempolicy support for ... Shivank Garg
- [RFC PATCH v8 1/7] security: Export anon_inod... Shivank Garg
- [RFC PATCH v8 2/7] KVM: guest_memfd: Use gues... Shivank Garg
- [RFC PATCH v8 3/7] mm/filemap: Add mempolicy ... Shivank Garg
- Re: [RFC PATCH v8 3/7] mm/filemap: Add me... Vlastimil Babka
- Re: [RFC PATCH v8 3/7] mm/filemap: Add me... Matthew Wilcox
- Re: [RFC PATCH v8 3/7] mm/filemap: Ad... Shivank Garg
- Re: [RFC PATCH v8 3/7] mm/filemap... Vlastimil Babka
- Re: [RFC PATCH v8 3/7] mm/filemap... Matthew Wilcox
- Re: [RFC PATCH v8 3/7] mm/fi... Shivank Garg
- Re: [RFC PATCH v8 3/7] m... Matthew Wilcox
- [PATCH 1/2] filemap: Add a mempolicy argu... Matthew Wilcox (Oracle)
- Re: [PATCH 1/2] filemap: Add a mempol... Gupta, Pankaj
- Re: [PATCH 1/2] filemap: Add a mempol... Vlastimil Babka
- [PATCH 2/2] filemap: Add __filemap_get_fo... Matthew Wilcox (Oracle)
- Re: [PATCH 2/2] filemap: Add __filema... Matthew Wilcox
- Re: [PATCH 2/2] filemap: Add __fi... Andrew Morton
- Re: [PATCH 2/2] filemap: Add... Shivank Garg
- Re: [PATCH 2/2] filemap:... Vlastimil Babka
- Re: [PATCH 2/2] file... Shivank Garg