[PATCH] lib: add idr_replace
authorJeff Mahoney <jeffm@suse.com>
Mon, 26 Jun 2006 07:27:19 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:34 +0000 (09:58 -0700)
commit5806f07cd2c32920d5105e0f9ff3117338f34eec
tree65242ea629a19308656a3090fee6b513dfa0f723
parentc51c2752491e5e771de6c8861a85ba46752d7888
[PATCH] lib: add idr_replace

This patch adds idr_replace() to replace an existing pointer in a single
operation.

Device-mapper will use this to update the pointer it stored against a given
id.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/idr.h
lib/idr.c