rbd: more cleanup in rbd_header_from_disk()
authorAlex Elder <elder@inktank.com>
Fri, 24 Aug 2012 04:22:06 +0000 (23:22 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:50 +0000 (14:30 -0500)
commit621901d652db10ad8ceddd25dd4b883978a873e1
tree1f4c2d225847287536e65fe72cffb136cbe128c3
parentf785cc1dbe90b561b8ded92df4fe9732bdc54859
rbd: more cleanup in rbd_header_from_disk()

This just rearranges things a bit more in rbd_header_from_disk()
so that the snapshot sizes are initialized right after the buffer
to hold them is allocated and doing a little further consolidation
that follows from that.  Also adds a few simple comments.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
drivers/block/rbd.c