secretmem: convert page_is_secretmem() to folio_is_secretmem()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 22 Aug 2023 20:23:35 +0000 (21:23 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:31 +0000 (16:20 -0700)
commit8f9ff2deb8b91ad1cba666c7adbe4ca79e2d3225
tree7ccd50ea802f90c07ca26d685a7104a5f0835da6
parent7db15418d390cf878d7c77ae08a4ad39f1534bc5
secretmem: convert page_is_secretmem() to folio_is_secretmem()

The only caller already has a folio, so use it to save calling
compound_head() in PageLRU() and remove a use of page->mapping.

Link: https://lkml.kernel.org/r/20230822202335.179081-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/secretmem.h
mm/gup.c