Files
linux-stable-mirror/include/linux
Tejun Heo 72dba584b6 ida: implement idr based id allocator
Implement idr based id allocator.  ida is used the same way idr is
used but lacks id -> ptr translation and thus consumes much less
memory.  struct ida_bitmap is attached as leaf nodes to idr tree which
is managed by the idr code.  Each ida_bitmap is 128bytes long and
contains slightly less than a thousand slots.

ida is more aggressive with releasing extra resources acquired using
ida_pre_get().  After every successful id allocation, ida frees one
reserved idr_layer if possible.  Reserved ida_bitmap is not freed
automatically but only one ida_bitmap is reserved and it's almost
always used right away.  Under most circumstances, ida won't hold on
to memory for too long which isn't actively used.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-07-11 16:09:03 -07:00
..
2007-06-16 13:16:16 -07:00
2007-07-09 08:22:54 +01:00
2007-07-09 08:23:17 +01:00
2007-07-11 16:09:00 -07:00
2007-07-10 08:04:15 +02:00
2007-06-18 09:48:41 -07:00
2007-07-10 00:35:17 -04:00
2007-07-09 18:51:58 +02:00
2007-07-09 23:17:58 +02:00
2007-07-11 16:09:03 -07:00
2007-07-10 17:51:13 -07:00
2007-06-21 15:55:12 -07:00
2007-07-10 17:33:05 +01:00
2007-07-09 21:23:08 +02:00
2007-07-01 12:29:44 -07:00
2007-07-09 18:52:01 +02:00
2007-06-24 08:59:12 -07:00
2007-06-16 13:16:16 -07:00
2007-07-09 18:52:01 +02:00