]> err.no Git - linux-2.6/commit
idr: separate out idr_mark_full()
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:12 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:03 +0000 (16:09 -0700)
commite33ac8bdb0c84fe7afd2c45537b763faf28c589e
tree36b48600d7d0a5042042b51ed242bc57a7592025
parent7aae6dd80e265aa9402ed507caaff4a5dba55069
idr: separate out idr_mark_full()

Separate out idr_mark_full() from sub_alloc() and make marking the
allocated slot full the responsibility of idr_get_new_above_int().

Allocation part of idr_get_new_above_int() is renamed to
idr_get_empty_slot().  New idr_get_new_above_int() allocates a slot
using the function, install the user pointer and marks it full using
idr_mark_full().

This change doesn't introduce any behavior change.  This will be
used by ida.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/idr.c