diff options
author | 2023-01-16 19:29:59 +0000 | |
---|---|---|
committer | 2023-02-02 22:33:21 -0800 | |
commit | 5b4bd90f9ac76136c7148684b12276d4ae2d64a2 (patch) | |
tree | dba20cc221190f830ba7e5bb8c5a74126cdb9a34 /mm/page_ext.c | |
parent | mm: clean up mlock_page / munlock_page references in comments (diff) | |
download | wireguard-linux-5b4bd90f9ac76136c7148684b12276d4ae2d64a2.tar.xz wireguard-linux-5b4bd90f9ac76136c7148684b12276d4ae2d64a2.zip |
rmap: add folio parameter to __page_set_anon_rmap()
Avoid the compound_head() call in PageAnon() by passing in the folio that
all callers have. Also save me from wondering whether page->mapping can
ever be overwritten on a tail page (I don't think it can, but I'm not 100%
sure).
Link: https://lkml.kernel.org/r/20230116192959.2147032-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_ext.c')
0 files changed, 0 insertions, 0 deletions