Thread (32 messages) 32 messages, 6 authors, 2025-06-23

Re: [PATCH 2/2] filemap: Add __filemap_get_folio_mpol()

From: Shivank Garg <hidden>
Date: 2025-06-23 10:02:02
Also in: kvm, linux-coco, linux-fsdevel, linux-kselftest, linux-mm, lkml


On 6/23/2025 3:46 AM, Andrew Morton wrote:
On Mon, 23 Jun 2025 00:32:05 +0530 Shivank Garg [off-list ref] wrote:
quoted
quoted
-EXPORT_SYMBOL(__filemap_get_folio);
+EXPORT_SYMBOL(__filemap_get_folio_mpol);
 
 static inline struct folio *find_get_entry(struct xa_state *xas, pgoff_t max,
 		xa_mark_t mark)
_
Hi Andrew,

Thank you for addressing this.

If you don’t mind me asking,
I was curious why we used EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL here.
I had previously received feedback recommending the use of EXPORT_SYMBOL_GPL
to better align with the kernel’s licensing philosophy, which made sense to me.
Making this _GPL would effectively switch __filemap_get_folio() from
non-GPL to GPL.  Leaving it at non-GPL is less disruptive and Matthew's
patch did not have the intention of changing licensing.

Also,

hp2:/usr/src/25> grep "EXPORT_SYMBOL(" mm/filemap.c|wc -l
48
hp2:/usr/src/25> grep "EXPORT_SYMBOL_GPL(" mm/filemap.c|wc -l 
9
Can you pick these revised patches:

https://lore.kernel.org/linux-mm/20250623093939.1323623-4-shivankg@amd.com (local)

I did some touch-up on commit description, changed some code alignments to make it more readable
and fixed couple of checkpatch.pl warnings.

Thanks,
Shivank
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help