linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Christoph Hellwig <hch@lst.de>, Zi Yan <ziy@nvidia.com>,
	Eric Biggers <ebiggers@kernel.org>
Subject: Re: [PATCH] mm: Move nth_page from folio_page into folio_next
Date: Thu, 13 Mar 2025 12:25:50 +0000	[thread overview]
Message-ID: <Z9LOzj17FDFDw7JM@casper.infradead.org> (raw)
In-Reply-To: <Z9JhwhMIn4uhkHrI@gondor.apana.org.au>

On Thu, Mar 13, 2025 at 12:40:34PM +0800, Herbert Xu wrote:
> Discontiguous memory may require the use of nth_page instead of adding
> to struct page arithmetically.  However, discontiguous memory cannot
> exist within a single folio.

That isn't true.  HugeTLB can construct a folio which crosses a
contiguity boundary.



  reply	other threads:[~2025-03-13 12:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13  4:40 Herbert Xu
2025-03-13 12:25 ` Matthew Wilcox [this message]
2025-03-14  1:18   ` Herbert Xu
2025-03-14  1:40     ` Zi Yan

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=Z9LOzj17FDFDw7JM@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=ebiggers@kernel.org \
    --cc=hch@lst.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ziy@nvidia.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