diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-04-29 10:27:16 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-10-18 07:49:40 -0400 |
commit | 0995d7e568141226f10f8216aa4965e06ab5db8a (patch) | |
tree | cc377f799c48bc95a3a097cb3825bf28c76a13a0 /mm/memory.c | |
parent | 9bf70167e3c61473b95f40771decc3778bf0fb9f (diff) | |
download | lwn-0995d7e568141226f10f8216aa4965e06ab5db8a.tar.gz lwn-0995d7e568141226f10f8216aa4965e06ab5db8a.zip |
mm/workingset: Convert workingset_refault() to take a folio
This nets us 178 bytes of savings from removing calls to compound_head.
The three callers all grow a little, but each of them will be converted
to use folios soon, so that's fine.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index b67d80526bee..6308eeaed136 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3539,7 +3539,8 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) shadow = get_shadow_from_swap_cache(entry); if (shadow) - workingset_refault(page, shadow); + workingset_refault(page_folio(page), + shadow); lru_cache_add(page); |