]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: separate mapping info in rbd_dev
authorAlex Elder <elder@inktank.com>
Fri, 31 Aug 2012 22:29:51 +0000 (17:29 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commita98acd84bc2455b1e386761519ef2c533a185481
treefa50840800a981c6a5c9b5e52f372dbea4f81088
parent9ee1cf142ab5aca2a9aec57220df9e637003b0bd
rbd: separate mapping info in rbd_dev

Several fields in a struct rbd_dev are related to what is mapped, as
opposed to the actual base rbd image.  If the base image is mapped
these are almost unneeded, but if a snapshot is mapped they describe
information about that snapshot.

In some contexts this can be a little bit confusing.  So group these
mapping-related field into a structure to make it clear what they
are describing.

This also includes a minor change that rearranges the fields in the
in-core image header structure so that invariant fields are at the
top, followed by those that change.

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