From: Heiko Carstens <hca@linux.ibm.com>
To: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>,
linux-s390 <linux-s390@vger.kernel.org>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Ilya Leoshkevich <iii@linux.ibm.com>
Subject: Re: [PATCH v2] s390/mm: Allow hugepage migration for s390
Date: Fri, 13 Nov 2026 12:31:48 +0100 [thread overview]
Message-ID: <20261113113148.28437A08-hca@linux.ibm.com> (raw)
In-Reply-To: <76c9d6b0-77d3-46df-9c64-e4489b5a92c7-agordeev@linux.ibm.com>
On Thu, Nov 12, 2026 at 08:54:51AM +0100, Alexander Gordeev wrote:
> On Wed, Nov 11, 2026 at 07:29:44PM +0100, Gerald Schaefer wrote:
>
> > +#if IS_ENABLED(CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION)
> > +bool arch_hugetlb_migration_supported(struct hstate *h)
> > +{
>
> Oh, would you agree to such one? ;)
>
> return IS_ENABLED(CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION) &&
> __hugetlb_valid_size(huge_page_size(h));
>
> > + return __hugetlb_valid_size(huge_page_size(h));
> > +}
> > +#endif
Out of curiosity: why?
All other architectures do ifdef, instead if IS_ENABLED to make sure the
function exists only if the config option is enabled (IS_ENABLED would also
make sense if "m" would be a possible option, but that is not the case
here).
Then if this is only inline within the function, like suggested above, the
prototype in the header does not exist (rightfully), leading to compile time
warnings. The arch_hugetlb_migration_supported define also indicates the
availability of the feature.
So I'm wondering what the point of this exercise is and what the
deviation compared to other architectures would buy us.
prev parent reply other threads:[~2026-11-13 11:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 18:29 [PATCH v2] s390/mm: Allow hugepage migration for s390 Gerald Schaefer
2026-11-11 19:14 ` sashiko-bot
2026-11-12 11:13 ` Gerald Schaefer
2026-11-12 7:54 ` Alexander Gordeev
2026-11-13 11:31 ` Heiko Carstens [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=20261113113148.28437A08-hca@linux.ibm.com \
--to=hca@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
/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