[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aD6H73HH7BBoJ7XQ@localhost.localdomain>
Date: Tue, 3 Jun 2025 07:28:15 +0200
From: Oscar Salvador <osalvador@...e.de>
To: Sidhartha Kumar <sidhartha.kumar@...cle.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
akpm@...ux-foundation.org, willy@...radead.org,
muchun.song@...ux.dev
Subject: Re: [PATCH] mm/hugetlb: convert hugetlb_change_protection() to folios
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@...cle.com>
Reviewed-by: Oscar Salvador <osalvador@...e.de>
--
Oscar Salvador
SUSE Labs
Powered by blists - more mailing lists