]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
slab: Remove folio references in memcg_slab_post_charge()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 13 Nov 2025 00:09:17 +0000 (00:09 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 13 Nov 2025 10:01:08 +0000 (11:01 +0100)
commitea4702b1708ee3df8da06f07ce41fea84e6ed81d
treef562e7126fc3c31a0fe9042a03517933c0307581
parentee1ee8abc4197e21594ca29348629ccbfff4daec
slab: Remove folio references in memcg_slab_post_charge()

This allows us to skip the compound_head() call for large kmalloc
objects as the virt_to_page() call will always give us the head page
for the large kmalloc case.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Link: https://patch.msgid.link/20251113000932.1589073-4-willy@infradead.org
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c