diff options
author | Wei Yang <richard.weiyang@gmail.com> | 2017-07-06 15:36:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-06 16:24:30 -0700 |
commit | 66fdbe520315ee2ec0dbc8da5af4003d3911c534 (patch) | |
tree | 7a09f003c33e6a6812d774e4e76998fa833bf6f6 /mm | |
parent | c823bd9244337aef3699c546eb521c71fd60012e (diff) | |
download | lwn-66fdbe520315ee2ec0dbc8da5af4003d3911c534.tar.gz lwn-66fdbe520315ee2ec0dbc8da5af4003d3911c534.zip |
mm/slub.c: remove a redundant assignment in ___slab_alloc()
When the code comes to this point, there are two cases:
1. cpu_slab is deactivated
2. cpu_slab is empty
In both cased, cpu_slab->freelist is NULL at this moment.
This patch removes the redundant assignment of cpu_slab->freelist.
Link: http://lkml.kernel.org/r/20170507031215.3130-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c index 8addc535bcdc..b6b637503d77 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2572,7 +2572,6 @@ new_slab: page = c->page = c->partial; c->partial = page->next; stat(s, CPU_PARTIAL_ALLOC); - c->freelist = NULL; goto redo; } |