]> www.infradead.org Git - users/willy/xarray.git/commit
khugepaged: simplify the allocation of slab caches
authorHongfu Li <lihongfu@kylinos.cn>
Tue, 18 Jun 2024 01:45:17 +0000 (09:45 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:15 +0000 (19:30 -0700)
commit9b94b5a2f9a95d693cfa8db6e34dcb3f1cd91204
tree87bcf062e669fb0a316dba6c022ff28f9f6d2643
parentaa1b94891cbf48296b4571bf4625c0a13bd5e3f5
khugepaged: simplify the allocation of slab caches

Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Link: https://lkml.kernel.org/r/20240618014517.25954-1-lihongfu@kylinos.cn
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/khugepaged.c