aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/util.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-04-27 10:47:39 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-10-18 07:49:39 -0400
commit76580b6529db622964b4ffee59ded25efcb73748 (patch)
treeccda10588915cc433475b9f6825936a17017367d /mm/util.c
parentmm/swap: Add folio_activate() (diff)
downloadwireguard-linux-76580b6529db622964b4ffee59ded25efcb73748.tar.xz
wireguard-linux-76580b6529db622964b4ffee59ded25efcb73748.zip
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>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions