rbd: simplify __rbd_remove_all_snaps()
authorAlex Elder <elder@inktank.com>
Thu, 19 Jul 2012 14:09:27 +0000 (09:09 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:45 +0000 (18:15 -0700)
commita05932905695f8c6c06d353ecd52c8e5d607cc77
treeea85e30f75e5821577186a5b190d6881458d06b2
parenta66f8c97a31fd7b2cfd7b86d4789858dbfbedffb
rbd: simplify __rbd_remove_all_snaps()

This just replaces a while loop with list_for_each_entry_safe()
in __rbd_remove_all_snaps().

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c