[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <e5f01ffe-de51-4079-a87f-2886788422f9@arm.com>
Date: Fri, 31 May 2024 16:42:59 +0530
From: Dev Jain <dev.jain@....com>
To: zhouchengming@...edance.com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Anshuman.Khandual@....com
Subject: [QUESTION] mm: Redundant const parameter?
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
Powered by blists - more mailing lists