[PATCH 4/4] idr: reorder the fields

2014-04-22 Thread Lai Jiangshan
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

[PATCH 4/4] idr: reorder the fields

2014-04-22 Thread Lai Jiangshan
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