srcu: Move ->level from srcu_struct to srcu_usage
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 17 Mar 2023 21:43:08 +0000 (14:43 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 4 Apr 2023 15:35:44 +0000 (08:35 -0700)
commit208f41b1312443401353bec0c1939e2bfc28adce
treed540494622fb20eb85d5efac94319682ba96b3f8
parent95433f7263011e0e6e83caef85d98896dd99cab7
srcu: Move ->level from srcu_struct to srcu_usage

This commit moves the ->level[] array from the srcu_struct structure to
the srcu_usage structure to reduce the size of the former in order to
improve cache locality.

Suggested-by: Christoph Hellwig <hch@lst.de>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Tested-by: "Zhang, Qiang1" <qiang1.zhang@intel.com>
Tested-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/srcutree.h
kernel/rcu/srcutree.c