]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vm: adjust ifdef for TINY_RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 20 Mar 2013 04:07:04 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:23 +0000 (16:28 +1100)
commit901d41938c8ac1bd98c3fdcc8871693a6d28f41b
tree6ada199b11a980b8eedff2a626b365b94609ec7d
parenta7864674ccd3fc2a06ff6cc9219f62335459a14b
vm: adjust ifdef for TINY_RCU

There is an ifdef in page_cache_get_speculative() that checks for !SMP and
TREE_RCU, which has been an impossible combination since the advent of
TINY_RCU.  The ifdef enables a fastpath that is valid when preemption is
disabled by rcu_read_lock() in UP systems, which is the case when TINY_RCU
is enabled.  This commit therefore adjusts the ifdef to generate the
fastpath when TINY_RCU is enabled.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pagemap.h