From: Kristian Hoegsberg Date: Mon, 16 Jul 2007 06:37:24 +0000 (-0700) Subject: lib: add idr_remove_all X-Git-Tag: v2.6.23-rc1~1044 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23936cc0b5d89619c34c2dab11d8cf3d6f7ca028;p=pandora-kernel.git lib: add idr_remove_all Remove all ids from the given idr tree. idr_destroy() only frees up unused, cached idp_layers, but this function will remove all id mappings and leave all idp_layers unused. A typical clean-up sequence for objects stored in an idr tree, will use idr_for_each() to free all objects, if necessay, then idr_remove_all() to remove all ids, and idr_destroy() to free up the cached idr_layers. Signed-off-by: Kristian Hoegsberg Cc: Tejun Heo Cc: Dave Airlie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed