From: Dev Jain <dev.jain@arm.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: zhouchengming@bytedance.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Anshuman.Khandual@arm.com
Subject: Re: [QUESTION] mm: Redundant const parameter?
Date: Fri, 31 May 2024 17:54:38 +0530 [thread overview]
Message-ID: <f02792b7-ddf4-48c4-954d-aba20bebee61@arm.com> (raw)
In-Reply-To: <Zlm_vlhYa91fA1wu@casper.infradead.org>
I was just about to hit git send-email for a patch-series of 2, I
noticed your reply :)
On 5/31/24 17:47, Matthew Wilcox wrote:
> On Fri, May 31, 2024 at 04:42:59PM +0530, Dev Jain wrote:
>> 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.
> I have a patch to fix this; hang on a second ...
prev parent reply other threads:[~2024-05-31 12:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-31 11:12 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f02792b7-ddf4-48c4-954d-aba20bebee61@arm.com \
--to=dev.jain@arm.com \
--cc=Anshuman.Khandual@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=willy@infradead.org \
--cc=zhouchengming@bytedance.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox