From: Christoph Hellwig <hch@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [GIT PULL] more s390 updates for 6.6 merge window
Date: Tue, 26 Sep 2023 00:28:36 -0700 [thread overview]
Message-ID: <ZRKIJJNnOVNzyP/J@infradead.org> (raw)
In-Reply-To: <CAHk-=wgZP5uKXLmunUNotMo0cXhz=un5BzB_fB4zaefVR2Ex2Q@mail.gmail.com>
On Thu, Sep 07, 2023 at 11:02:23AM -0700, Linus Torvalds wrote:
> On Thu, 7 Sept 2023 at 04:27, Heiko Carstens <hca@linux.ibm.com> wrote:
> >
> > Note that the set_memory_xx() family comes with an int num_pages
> > parameter which overflows with 8TB. This could be addressed by
> > changing the num_pages parameter to unsigned long, however requires
> > to change all architectures, since the module code expects an int
> > parameter (see module_set_memory()).
>
> Bah. We should just do this. Change the 'start' to a pointer, and
> change the page count to 'unsigned long'.
>
> Changing module_set_memory() to take the right kind of function
> pointer looks trivial too.
>
> I'm not even sure why we did that "unsigned long addr" thing, but I
> assume it is because of our (very very _very_ old) historical
> get_free_pages() model.
>
> We should probably change get_free_pages() too, but that literally
> goes back to linux-0.01. It's horrendously bad, but it's _very_
> traditional, and it comes from the VM code historically using bitops
> on the page pointers.
Yes, please. And maybe pick a better name for the void * returning
version. kmalloc_pages/kfree_pages? or is that to close to
kmalloc/kfree?
next prev parent reply other threads:[~2023-09-26 7:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-07 11:27 [GIT PULL] more s390 updates for 6.6 merge window Heiko Carstens
2023-09-07 18:02 ` Linus Torvalds
2023-09-26 7:28 ` Christoph Hellwig [this message]
2023-09-07 18:03 ` pr-tracker-bot
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=ZRKIJJNnOVNzyP/J@infradead.org \
--to=hch@infradead.org \
--cc=agordeev@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=torvalds@linux-foundation.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