]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 5 Apr 2023 23:02:57 +0000 (16:02 -0700)
commit9cf8e4b570b71fd8416dc1dd27d89b037f0a787b
tree265b1696cd6e89b419a4c636ed5dbe5a2e9058c5
parentde90118bf5dc655b2daad97dfc0bbefef9248da5
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>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mlock.c