idr: relocate idr_for_each_entry() and reorganize id[r|a]_get_new()
authorTejun Heo <tj@kernel.org>
Thu, 28 Feb 2013 01:03:52 +0000 (17:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:14 +0000 (19:10 -0800)
commit49038ef4fbe2842bd4d8338f89ec5c9ba71b0ae1
treeefe83b3396bd93c1154edf1375a899811d62dde3
parent4106ecaf59b79efff3f9b466baf9e8c67e19ac5a
idr: relocate idr_for_each_entry() and reorganize id[r|a]_get_new()

* Move idr_for_each_entry() definition next to other idr related
  definitions.

* Make id[r|a]_get_new() inline wrappers of id[r|a]_get_new_above().

This changes the implementation of idr_get_new() but the new
implementation is trivial.  This patch doesn't introduce any
functional change.

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>
include/linux/idr.h
lib/idr.c