]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vm: adjust ifdef for TINY_RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 26 Mar 2013 23:24:17 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:02 +0000 (17:12 +1100)
commit92c0330997db61e6d3dbefbeb6671e61e484237f
treecb7b90c7c3b5a555caf098b369b6173222b0378b
parent6f71f4c24070c642913b8eb7a50f2bfd752de808
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