mm: mlock: use folios_put() in mlock_folio_batch()
authorQi Zheng <zhengqi.arch@bytedance.com>
Wed, 5 Apr 2023 16:18:54 +0000 (00:18 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:29:53 +0000 (16:29 -0700)
commit2bd7f621130b47cab8bed82234cac1f9f105efb7
treead9b7e0187173d6d8147e9c82213ab72c2bc3741
parentddc65971bb677aa9f6a4c21f76d3133e106f88eb
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/20230405161854.6931-2-zhengqi.arch@bytedance.com
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mlock.c