On 4/18/26 10:44 AM, Zi Yan wrote:
collapse_file() requires FSes supporting large folio with at least PMD_ORDER, so replace the READ_ONLY_THP_FOR_FS check with that. MADV_COLLAPSE ignores shmem huge config, so exclude the check for shmem. While at it, replace VM_BUG_ON with VM_WARN_ON_ONCE. Add a helper function mapping_pmd_thp_support() for FSes supporting large folio with at least PMD_ORDER. Signed-off-by: Zi Yan <[email protected]> ---
LGTM. Reviewed-by: Baolin Wang <[email protected]>

