mmz3fold-use-xx_zalloc-instead-xx_alloc-and-memset.patch removed from -mm tree
The patch titled
Subject: mm/z3fold.c: use xx_zalloc instead xx_alloc and memset
has been removed from the -mm tree. Its filename was
mmz3fold-use-xx_zalloc-instead-xx_alloc-and-memset.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Hui Su <[email protected]>
Subject: mm/z3fold.c: use xx_zalloc instead xx_alloc and memset
alloc_slots() allocates memory for slots using kmem_cache_alloc(), then memsets it. We can just use kmem_cache_zalloc().
Signed-off-by Hui Su <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/z3fold.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
mm/z3fold.c renamed from mm/z3fold.c~mmz3fold-use-xx_zalloc-instead-xx_alloc-and-memset +1 -2
@@ -212,13 +212,12 @@ static inline struct z3fold_buddy_slots {struct z3fold_buddy_slots *slots; - slots =kmem_cache_alloc (pool->c_handle, + slots =kmem_cache_zalloc (pool->c_handle, (gfp & ~(__GFP_HIGHMEM | __GFP_MOVABLE)));if (slots) {/* It will be freed separately in free_handle(). */ kmemleak_not_leak (slots); -memset (slots->slot,0 ,sizeof (slots->slot)); slots->pool = (unsigned long )pool;rwlock_init (&slots->lock); }
_
Patches currently in -mm which might be from [email protected] are