rbd: set mapping name with the rest
authorAlex Elder <elder@inktank.com>
Fri, 31 Aug 2012 22:29:52 +0000 (17:29 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commit4e1105a299adf7ac421d42a8be05205f51610f3c
tree74c0b0ba2390018d1aa66fdda2e9bc0b095bdb72
parent3feeb8946739d980fb0922bf68363552a493a49c
rbd: set mapping name with the rest

With the exception of the snapshot name, all of the mapping-specific
fields in an rbd device structure are set in rbd_header_set_snap().

Pass the snapshot name to be assigned into rbd_header_set_snap()
to keep all of the mapping assignments together.

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