summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorPeng Wang2019-03-06 00:42:00 +0100
committerLinus Torvalds2019-03-06 06:07:14 +0100
commitedde82b6df70cf10486d7f1e1611151218e6c316 (patch)
tree09dd072ad0753f3e0239580d5a75f909cd06d987 /mm/slab.c
parentfs/file.c: initialize init_files.resize_wait (diff)
downloadkernel-qcow2-linux-edde82b6df70cf10486d7f1e1611151218e6c316.tar.gz
kernel-qcow2-linux-edde82b6df70cf10486d7f1e1611151218e6c316.tar.xz
kernel-qcow2-linux-edde82b6df70cf10486d7f1e1611151218e6c316.zip
mm/slub.c: freelist is ensured to be NULL when new_slab() fails
new_slab_objects() will return immediately if freelist is not NULL. if (freelist) return freelist; One more assignment operation could be avoided. Link: http://lkml.kernel.org/r/20181229062512.30469-1-rocking@whu.edu.cn Signed-off-by: Peng Wang <rocking@whu.edu.cn> Reviewed-by: Pekka Enberg <penberg@kernel.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: David Rientjes <rientjes@google.com> Cc: Christoph Lameter <cl@linux.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/slab.c')
0 files changed, 0 insertions, 0 deletions