Skip to contentSkip to conversation

mm-remove-useless-lines-in-enable_cpucache.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/slab.c: remove useless lines in enable_cpucache()
has been removed from the -mm tree. Its filename was
mm-remove-useless-lines-in-enable_cpucache.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Shi Lei <[email protected]>
Subject: mm/slab.c: remove useless lines in enable_cpucache()

These lines are useless, so remove them.

Fixes 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches for all allocations")
Cc Christoph Lameter <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Joonsoo Kim <[email protected]>

---

 mm/slab.c |    3 ---
 1 file changed, 3 deletions(-)
mm/slab.c renamed from mm/slab.c~mm-remove-useless-lines-in-enable_cpucache +0 -3
@@ -3900,8 +3900,6 @@ static int enable_cpucache(struct kmem_c
 	if (err)
 		goto end;
 
-	if (limit && shared && batchcount)
-		goto skip_setup;
 	/*
 	 * The head array serves three purposes:
 	 * - create a LIFO ordering, i.e. return objects that are cache-warm
@@ -3944,7 +3942,6 @@ static int enable_cpucache(struct kmem_c
 		limit = 32;
 #endif
 	batchcount = (limit + 1) / 2;
-skip_setup:
 	err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
 end:
 	if (err)

_

Patches currently in -mm which might be from [email protected] are