Skip to content

Commit 2bd7f62

Browse files
Qi Zhengakpm00
Qi Zheng
authored andcommitted
mm: mlock: use folios_put() in mlock_folio_batch()
Since we have updated mlock to use folios, it's better to call folios_put() instead of calling release_pages() directly. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Qi Zheng <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ddc6597 commit 2bd7f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/mlock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void mlock_folio_batch(struct folio_batch *fbatch)
206206

207207
if (lruvec)
208208
unlock_page_lruvec_irq(lruvec);
209-
release_pages(fbatch->folios, fbatch->nr);
209+
folios_put(fbatch->folios, folio_batch_count(fbatch));
210210
folio_batch_reinit(fbatch);
211211
}
212212

0 commit comments

Comments
 (0)