]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: rearrange rbd_header_from_disk()
authorAlex Elder <elder@inktank.com>
Thu, 19 Jul 2012 22:12:59 +0000 (17:12 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:48 +0000 (14:30 -0500)
commit5e7b78ceb3d7aa174e60c8b584955495f311378b
tree20a3c1c9b7a37e3266db0b8532fbeabf5ed42ab6
parenta003e18f81bf4c49ccd383655b7b4031e219f92d
rbd: rearrange rbd_header_from_disk()

This just moves code around for the most part.  It was pulled out as
a separate patch to avoid cluttering up some upcoming patches which
are more substantive.  The point is basically to group everything
related to initializing the snapshot context together.

The only functional change is that rbd_header_from_disk() now
ensures the (in-core) header it is passed is zero-filled.  This
allows a simpler error handling path in rbd_header_from_disk().

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