rbd: zero format 1 header structure earlier
authorAlex Elder <elder@inktank.com>
Mon, 6 May 2013 14:51:29 +0000 (09:51 -0500)
committerAlex Elder <elder@inktank.com>
Wed, 8 May 2013 22:00:28 +0000 (17:00 -0500)
commit46578dcdca951f3da70d3a5a9b5166b2a492a182
tree3646f4403d3267b9774928fcdb913cdc222bbd1c
parentf35a4dee14c31dc00807f3bcd59cc7a6959f63d7
rbd: zero format 1 header structure earlier

The passed-in header structure is zeroed in rbd_header_from_disk().
Instead, have the caller do it.  Note that there are two callers,
rbd_dev_v1_refresh() and rbd_dev_v1_probe().  The latter already has
a zeroed header structure so zeroing it isn't necessary there.

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