]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swap: Add folio_mark_accessed()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 27 Apr 2021 14:47:39 +0000 (10:47 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 14 Aug 2021 21:44:20 +0000 (17:44 -0400)
commit8b9b282a54a8dff1dcf8cc36a8bf4dcbad04eb33
tree408327d77aafd51ba230a169f139a7fb2407ece0
parentbc9438a8b97dc8a18eec853386bc248ec809148d
mm/swap: Add folio_mark_accessed()

Convert mark_page_accessed() to folio_mark_accessed().  It already
operated on the entire compound page, but now we can avoid calling
compound_head quite so many times.  Shrinks the function from 424 bytes
to 295 bytes (shrinking by 129 bytes).  The compatibility wrapper is 30
bytes, plus the 8 bytes for the exported symbol means the kernel shrinks
by 91 bytes.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/swap.h
mm/folio-compat.c
mm/swap.c