]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dlm: use idr_for_each_entry() in recover_idr_clear() error path
authorTejun Heo <tj@kernel.org>
Thu, 7 Feb 2013 01:28:01 +0000 (12:28 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:26 +0000 (16:47 +1100)
commit1b06601ad4a10c7ccfbb0da05856f7cc4af06aae
tree5fbc9bdba4643ced473318a7186ad5d159de348b
parentf73d4ecf7a06ddf316b651b4bb428fa22a630273
dlm: use idr_for_each_entry() in recover_idr_clear() error path

Convert recover_idr_clear() to use idr_for_each_entry() instead of
idr_for_each().  It's somewhat less efficient this way but it
shouldn't matter in an error path.  This is to help with deprecation
of idr_remove_all().

Only compile tested.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Christine Caulfield <ccaulfie@redhat.com>
Cc: David Teigland <teigland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/dlm/recover.c