dlm: use idr_for_each_entry() in recover_idr_clear() error path
authorTejun Heo <tj@kernel.org>
Thu, 28 Feb 2013 01:03:44 +0000 (17:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:13 +0000 (19:10 -0800)
commitcda95406c8fe491c01b3abc422c25a613e9f36ea
tree6b9337646a9a9b1b5c90356e3fc351aeec550802
parenta15abcc961426c9e560bec26785e05b68154c474
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().

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dlm/recover.c