rbd: separate layout init
authorAlex Elder <elder@inktank.com>
Fri, 9 Nov 2012 14:43:15 +0000 (08:43 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 21:52:01 +0000 (15:52 -0600)
commit0ec8ce87f3bb5e4a561190f5320934e003405b6f
tree75962a9eee906e1b02704ed4f5268f62b97118b5
parenta7b4c65f4f15aa657b09d13da8f45ba0b72ec0df
rbd: separate layout init

Pull a block of code that initializes the layout structure in an osd
request into its own function so it can be reused.

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