[QUESTION] mm: Redundant const parameter?
From: Dev Jain
Date: Fri May 31 2024 - 07:13:14 EST
Hi Chengming,
In mm/slub.c, you had defined slab_test_node_partial() to take a const
parameter.
Is there any point of taking in a const, when you are anyways
typecasting it to
a (struct folio *) from (const struct folio *) ? In fact, at the place
where you call
slab_test_node_partial(), the struct slab *slab is not const.
Please comment.
Thanks
DJ