On 2024/8/29 22:54, Kefeng Wang wrote:
Non-LRU movable folio isolation will fail if it can't grab a reference in isolate_movable_page(), so folio_get_nontail_page() could be called ahead to unify the handling of non-LRU movable/LRU folio isolation a bit, this is also prepare to convert isolate_movable_page() to take a folio. Since the reference count of the non-LRU movable folio is increased, a folio_put() is needed whether the folio is isolated or not. Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
The changes look good to me. However, need to address Matthew's concerns first.