idr: refactor idr_get_new_above()
authorTejun Heo <tj@kernel.org>
Thu, 28 Feb 2013 01:03:54 +0000 (17:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:14 +0000 (19:10 -0800)
commit3594eb2894f571c9b9a497159b1e4d84fdac5688
tree471f3da090b7b297b3c35e7901c91c3f5042ef52
parent12d1b4393e0d8df36b2646a5e512f0513fb532d2
idr: refactor idr_get_new_above()

Move slot filling to idr_fill_slot() from idr_get_new_above_int() and
make idr_get_new_above() directly call it.  idr_get_new_above_int() is
no longer needed and removed.

This will be used to implement a new ID allocation interface.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c