]> git.karo-electronics.de Git - karo-tx-linux.git/commit
idr: relocate idr_for_each_entry() and reorganize id[r|a]_get_new()
authorTejun Heo <tj@kernel.org>
Thu, 7 Feb 2013 01:31:32 +0000 (12:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:27 +0000 (16:47 +1100)
commit3c123262124d17ee7a5562ce26b63a1d7fbb828c
treeac988ffc72fa14a1f47126188571979eafc2d8ef
parent0c4ac4c86868f85800e8bc4b8555515c9cbf203d
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>
include/linux/idr.h
lib/idr.c