Re: [PATCH 0/6] hugetlb: normalize exported interfaces to use base-page indices
From: jane . chu
Date: Wed Apr 15 2026 - 15:41:50 EST
On 4/15/2026 1:03 AM, Oscar Salvador wrote:
On Thu, Apr 09, 2026 at 05:41:51PM -0600, Jane Chu wrote:
This series stems from a discussion with David. [1]
The series makes a small cleanup to a few hugetlb interfaces used
outside the subsystem by standardizing them on base-page indices.
Hopefully this makes the interface semantics a bit more coherent with
the rest of mm, while the internal hugetlb code continue to use hugepage
indices where that remains the more natural fit.
It is based off mm-stable, 3/30/2026, b2c31180b9d6.
[1] https://lore.kernel.org/linux-mm/9ec9edd1-0f4c-4da2-ae78-0e7b251a9e25@xxxxxxxxxx/
It seems you got some trailing spaces issues:
Applying: hugetlb: open-code hugetlb folio lookup index conversion
.git/rebase-apply/patch:64: trailing whitespace.
pgoff_t index = start >> PAGE_SHIFT;
Applying: hugetlb: make hugetlb_fault_mutex_hash() take PAGE_SIZE index
.git/rebase-apply/patch:161: trailing whitespace.
key[1] = index >> huge_page_order(hstate_inode(mapping->host));
Applying: hugetlb: drop vma_hugecache_offset() in favor of linear_page_index()
.git/rebase-apply/patch:44: trailing whitespace.
start = linear_page_index(vma, vma->vm_start);
.git/rebase-apply/patch:46: trailing whitespace.
end = linear_page_index(vma, vma->vm_end);
Applying: hugetlb: pass hugetlb reservation ranges in base-page indices
.git/rebase-apply/patch:237: trailing whitespace.
next_index = index + pages_per_huge_page(h)
Sorry, will remove them in v2.
thanks!
-jane