mm: don't call should_failslab() for !CONFIG_FAILSLAB misc-next
authorJens Axboe <axboe@kernel.dk>
Sat, 18 Sep 2021 13:31:07 +0000 (07:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 Oct 2021 17:32:47 +0000 (11:32 -0600)
commitf1b1f5ae2af5a20c01d4f9e8cce6bc867e8718b3
tree560eb5c1a89bc7eab1b7e047a50528dba995a700
parent42f0579b08cb17e1ad6221a895c45c7cc9c5d8be
mm: don't call should_failslab() for !CONFIG_FAILSLAB

Allocations can be a very hot path, and this out-of-line function
call is noticeable.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fault-inject.h
mm/slab.h
mm/slab_common.c