aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShi Lei <[email protected]>2021-11-05 13:35:10 -0700
committerLinus Torvalds <[email protected]>2021-11-06 13:30:32 -0700
commitffc95a46d677adb5f49f01789db9d8c3ae0af5e2 (patch)
tree9313e41599c41e2ecf7bb745dd9992c66330fa79
parent8587ca6f34152ea650bad4b2db68456601159024 (diff)
mm/slab.c: remove useless lines in enable_cpucache()
These lines are useless, so remove them. Link: https://lkml.kernel.org/r/[email protected] Fixes: 10befea91b61 ("mm: memcg/slab: use a single set of kmem_caches for all allocations") Signed-off-by: Shi Lei <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Acked-by: David Rientjes <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/slab.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 874b3f8fe80d..64ec17a3bc2b 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3900,8 +3900,6 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
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_cache *cachep, gfp_t gfp)
limit = 32;
#endif
batchcount = (limit + 1) / 2;
-skip_setup:
err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
end:
if (err)