]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63a69263c3030c5e5d3269e32ab73ff131ae225b
treeefe83b3396bd93c1154edf1375a899811d62dde3
parent7ee5ca80d2fb5f65d7df2810c96f91cc659e5818
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