proc: use pfn_swap_entry_folio where obvious
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 11 Jan 2024 15:24:21 +0000 (15:24 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 00:00:03 +0000 (16:00 -0800)
commit7101422464ecbca75540feab65b465dee3283438
tree3f2e1b1a5f2c4cea8d62a44d96efbdbec789c8c0
parent5662400a9ac03f38ef3b84e4ff9a640a4604bef9
proc: use pfn_swap_entry_folio where obvious

These callers only pass the result to PageAnon(), so we can save the extra
call to compound_head() by using pfn_swap_entry_folio().

Link: https://lkml.kernel.org/r/20240111152429.3374566-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c