]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: micro-optimise slab to avoid a function call
authorMel Gorman <mgorman@suse.de>
Sat, 21 Jul 2012 00:54:24 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:37 +0000 (13:02 +1000)
commit288af5020bb68c69d6360a9e381a5d508a88f93c
treefbfa76e2a5ffdb00a6e4059e09fbf0895c9db90c
parent8e2ac3ce1689ee15230acc1fcaabe6a166cf82b4
mm: micro-optimise slab to avoid a function call

Getting and putting objects in SLAB currently requires a function call but
the bulk of the work is related to PFMEMALLOC reserves which are only
consumed when network-backed storage is critical.  Use an inline function
to determine if the function call is required.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Cc: David Miller <davem@davemloft.net>
Cc: Neil Brown <neilb@suse.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Eric B Munson <emunson@mgebm.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slab.c