diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-01-16 19:29:59 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-02 22:33:21 -0800 |
commit | 5b4bd90f9ac76136c7148684b12276d4ae2d64a2 (patch) | |
tree | dba20cc221190f830ba7e5bb8c5a74126cdb9a34 /mm/page_alloc.c | |
parent | e0650a41f7d024b72669a2a2db846ef70281abd8 (diff) |
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_alloc.c')
0 files changed, 0 insertions, 0 deletions