]> git.karo-electronics.de Git - karo-tx-linux.git/commit
idr: reorder the fields
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 22 May 2014 00:44:09 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:09 +0000 (10:44 +1000)
commit0bfb6d6f597820de6e1a918b83f516a49e7dce0d
tree2b0651d79526492c196903b60dc27aea90453db1
parentc4ebcc769bdfc2b1eb55aea925ae2ecf8de35dc3
idr: reorder the fields

idr_layer->layer is always accessed in read path, move it in the front.

idr_layer->bitmap is moved on the bottom.  And rcu_head shares with bitmap
due to they do not be accessed at the same time.

idr->id_free/id_free_cnt/lock are free list fields, and moved to the
bottom.  They will be removed in near future.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/idr.h