]> www.infradead.org Git - users/willy/pagecache.git/commit
slab: Remove folio references from __do_krealloc()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 28 Aug 2025 16:49:47 +0000 (12:49 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 9 Sep 2025 18:39:07 +0000 (14:39 -0400)
commitf7f45a51a0829768fefb7b0fcd7221f1e87559ae
treeb3a071792044c645dbe10c52062c4ec6e2ca87ee
parent786c078978001a6cd3ef59bd48266e026740a13e
slab: Remove folio references from __do_krealloc()

As with memcg_slab_post_charge(), we save a call to compound_head()
for large kmallocs.  This has a slight change of behaviour in that
non-vmalloc, non-slab, non-kmalloc pointers will now cause a NULL
pointer dereference rather than a warning.  We could add that back if
really needed.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/slub.c