mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
slab: Make allocations with GFP_ZERO slightly more efficient
Use the likely mechanism already around valid pointer tests to better choose when to memset to 0 allocations with __GFP_ZERO Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
parent
8fc9cf420b
commit
5087c82299
1 changed files with 8 additions and 8 deletions
16
mm/slab.c
16
mm/slab.c
Loading…
Add table
Add a link
Reference in a new issue