]> git.karo-electronics.de Git - karo-tx-linux.git/commit
idr: don't need to shink the free list when idr_remove()
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)
commit8a5959e75b32fda7ca38b8c5e158c880d5de7b6e
tree5ae4afe07c472fa50691ed3bbb35161f97e5f531
parentd2bc568820c8937c7e3a3f817626cbc9baa6b9b8
idr: don't need to shink the free list when idr_remove()

After idr subsystem is changed to RCU-awared, the free layer will not go
to the free list.  The free list will not be filled up when idr_remove().
So we don't need to shink it too.

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