Re: [PATCH v4 1/7] mm/mremap: Optimize the start addresses in move_page_tables()
From: Joel Fernandes
Date: Tue Jun 20 2023 - 17:21:17 EST
On 6/20/23 17:16, Joel Fernandes wrote:
Considering our discussion above that hugetlb mremap addresses should always
starts at a PMD boundary, maybe I can just add a warning to the if() like so to
detect any potential?
if (is_vm_hugetlb_page(vma)) {
WARN_ON_ONCE(old_addr - old_end != len);
Oops, I meant WARN_ON_ONCE(old_end - old_addr != len);
to make sure we did not mess up hugetlb mremaps.
thanks,
- Joel