linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [QUESTION] mm: Redundant const parameter?
@ 2024-05-31 11:12 Dev Jain
  2024-05-31 11:31 ` Dev Jain
  2024-05-31 12:17 ` Matthew Wilcox
  0 siblings, 2 replies; 7+ messages in thread
From: Dev Jain @ 2024-05-31 11:12 UTC (permalink / raw)
  To: zhouchengming; +Cc: linux-mm, linux-kernel, Anshuman.Khandual

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-31 13:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-31 11:12 [QUESTION] mm: Redundant const parameter? Dev Jain
2024-05-31 11:31 ` Dev Jain
2024-05-31 12:30   ` [External] " Chengming Zhou
2024-05-31 12:38     ` Dev Jain
2024-05-31 13:20     ` Matthew Wilcox
2024-05-31 12:17 ` Matthew Wilcox
2024-05-31 12:24   ` Dev Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox