All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	akpm@linux-foundation.org, muchun.song@linux.dev,
	osalvador@suse.de
Subject: Re: [PATCH] mm/hugetlb: convert hugetlb_change_protection() to folios
Date: Wed, 28 May 2025 23:56:16 +0100	[thread overview]
Message-ID: <aDeUkLGM9l_twtT-@casper.infradead.org> (raw)
In-Reply-To: <20250528192013.91130-1-sidhartha.kumar@oracle.com>

On Wed, May 28, 2025 at 03:20:13PM -0400, Sidhartha Kumar wrote:
> The for loop inside hugetlb_change_protection() increments by the huge
> page size:
> 
> psize = huge_page_size(h);
> for (; address < end; address += psize)
> 
> so we are operating on the head page of the huge pages between address
> and end. We can safely convert the struct page usage to struct folio.
> 
> Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>

Reviewwd-by: Matthew Wilcox (Oracle) <willy@infradead.org>


  reply	other threads:[~2025-05-28 22:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-28 19:20 [PATCH] mm/hugetlb: convert hugetlb_change_protection() to folios Sidhartha Kumar
2025-05-28 22:56 ` Matthew Wilcox [this message]
2025-06-03  5:28 ` Oscar Salvador

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=aDeUkLGM9l_twtT-@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=muchun.song@linux.dev \
    --cc=osalvador@suse.de \
    --cc=sidhartha.kumar@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.