rbd: refactor rbd_dev_probe_update_spec()
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 14:43:48 +0000 (09:43 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:44 +0000 (21:19 -0700)
commit2e9f7f1c0de23156e225046f10fad939a4017e97
treea348b78945b467d9f134660d90227f794307ea47
parent71f293e26e760c4151e00b8f611e67da222f89c7
rbd: refactor rbd_dev_probe_update_spec()

Fairly straightforward refactoring of rbd_dev_probe_update_spec().
The name is changed to rbd_dev_spec_update().

Rearrange it so nothing gets assigned to the spec until all of the
names have been successfully acquired.

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