Skip to content

Commit ffc95a4

Browse files
shilei-masscloudstorvalds
authored andcommitted
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: 10befea ("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]>
1 parent 8587ca6 commit ffc95a4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mm/slab.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3900,8 +3900,6 @@ static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp)
39003900
if (err)
39013901
goto end;
39023902

3903-
if (limit && shared && batchcount)
3904-
goto skip_setup;
39053903
/*
39063904
* The head array serves three purposes:
39073905
* - 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)
39443942
limit = 32;
39453943
#endif
39463944
batchcount = (limit + 1) / 2;
3947-
skip_setup:
39483945
err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
39493946
end:
39503947
if (err)

0 commit comments

Comments
 (0)