[PATCH] lib: add idr_replace
commit722cc750d76f384c5b881a1dad7e1e12c5d7fb79
authorJeff Mahoney <jeffm@suse.com>
Mon, 26 Jun 2006 07:27:19 +0000 (26 00:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Sep 2006 03:23:01 +0000 (8 20:23 -0700)
treed8bb9c9e72baaa9aeb2a8273038e9092fa4aa0e1
parent386986a5c2f0d5bd4a9b184f9093391a581bf601
[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/idr.h
lib/idr.c