Skip to content

Commit c14bdcc

Browse files
RichardWeiYangakpm00
authored andcommitted
mm/khugepaged: use KMEM_CACHE()
We got some late review commits during review of commit b4c9ffb ("mm/khugepaged: remove definition of struct khugepaged_mm_slot"). No need to keep the old cache name "khugepaged_mm_slot", let's simply use KMEM_CACHE(). Link: https://lkml.kernel.org/r/[email protected] Fixes: b4c9ffb ("mm/khugepaged: remove definition of struct khugepaged_mm_slot") Signed-off-by: Wei Yang <[email protected]> Acked-by: Lance Yang <[email protected]> Reviewed-by: Dev Jain <[email protected]> Acked-by: David Hildenbrand <[email protected]> Acked-by: Zi Yan <[email protected]> Reviewed-by: Raghavendra K T <[email protected]> Cc: Kiryl Shutsemau <[email protected]> Cc: xu xin <[email protected]> Cc: SeongJae Park <[email protected]> Cc: Nico Pache <[email protected]> Cc: Baolin Wang <[email protected]> Cc: Barry Song <[email protected]> Cc: Chengming Zhou <[email protected]> Cc: Dan Carpenter <[email protected]> Cc: Kiryl Shutsemau <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Ryan Roberts <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent df6879a commit c14bdcc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mm/khugepaged.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,7 @@ int hugepage_madvise(struct vm_area_struct *vma,
376376

377377
int __init khugepaged_init(void)
378378
{
379-
mm_slot_cache = kmem_cache_create("khugepaged_mm_slot",
380-
sizeof(struct mm_slot),
381-
__alignof__(struct mm_slot),
382-
0, NULL);
379+
mm_slot_cache = KMEM_CACHE(mm_slot, 0);
383380
if (!mm_slot_cache)
384381
return -ENOMEM;
385382

0 commit comments

Comments
 (0)