diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-04-27 10:47:39 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-10-18 07:49:39 -0400 |
commit | 76580b6529db622964b4ffee59ded25efcb73748 (patch) | |
tree | ccda10588915cc433475b9f6825936a17017367d /mm/rmap.c | |
parent | f2d273927ea49e2f85b660aeca26f58b8a15d385 (diff) | |
download | lwn-76580b6529db622964b4ffee59ded25efcb73748.tar.gz lwn-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/rmap.c')
0 files changed, 0 insertions, 0 deletions