commit | cd4775e7e74cb0902b87514b086525aea47ca419 | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <oleg@redhat.com> | Mon Jun 30 18:18:52 2014 +0200 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Mon Jun 30 13:02:15 2014 -0700 |
tree | be6cb7c943dfa36ed6e8c4d119aa97fd58e7473f | |
parent | 2b8f6523ad761ea03dc5a1b0e2cc754f63f9580b [diff] |
rcu: Change rcu_dereference_check(c) to check "c" first Change the order of "c" and "_held" checks in rcu_dereference_check(), this can help if __builtin_constant_p(c). CONFIG_DEBUG_LOCK_ALLOC + CONFIG_PROVE_RCU + CONFIG_TREE_RCU_TRACE - 5578795 3026776 14757888 23363459 + 5542443 3014040 14757888 23314371 saves 49088 bytes according to size vmlinux. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>