On Wed, 4 May 2022, Zach O'Keefe wrote: > Pipe enum scan_result codes back through return values of functions > downstream of khugepaged_scan_file() and khugepaged_scan_pmd() to > inform callers if the operation was successful, and if not, why. > > Since khugepaged_scan_pmd()'s return value already has a specific > meaning (whether mmap_lock was unlocked or not), add a bool* argument > to khugepaged_scan_pmd() to retrieve this information. > > Change khugepaged to take action based on the return values of > khugepaged_scan_file() and khugepaged_scan_pmd() instead of acting > deep within the collapsing functions themselves. > > Signed-off-by: Zach O'Keefe <zokeefe@xxxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx>