On 25.07.24 03:16, Kefeng Wang wrote:
Move isolate_hugetlb() after grab a reference, and use the isolate_folio_to_list() to unify hugetlb/LRU/non-LRU folio isolation, which cleanup code a bit and save a few calls to compound_head().
Will this work with free hugetlb folios that have a refcount of 0 and get_page_unless_zero() would fail? -- Cheers, David / dhildenb