On 2025/8/19 02:46, Zi Yan wrote:
The helper gathers a folio order statistics of folios within a virtual
address range and checks it against a given order list. It aims to provide
a more precise folio order check instead of just checking the existence of
PMD folios.
The helper will be used the upcoming commit.
Signed-off-by: Zi Yan <[email protected]>
---
I tested this patch, and it works for me.
Tested-by: Baolin Wang <[email protected]>
By the way, I moved gather_after_split_folio_orders() to the vm_util.c
file as a helper for mTHP collapse checks in my patchset[1]. I'm not
sure whether you need to move gather_after_split_folio_orders() to
vm_util.c in this patch, or if I should move it in my patchset.
[1]
https://lore.kernel.org/all/955e0b9682b1746c528a043f0ca530b54ee22536.1755677674.git.baolin.w...@linux.alibaba.com/