rbd: do some header initialization earlier
authorAlex Elder <elder@inktank.com>
Wed, 11 Jul 2012 01:30:10 +0000 (20:30 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commit2ac4e75d89e9df8eea6390a759eac2b6df0ebff6
tree77e02e2fa3376325ff7c93aaf469369e15eb1928
parent8836b995fd192dba23d312d2a4fba68dd8ca7183
rbd: do some header initialization earlier

Move some of the code that initializes an rbd header out of
rbd_init_disk() and into its caller.

Move the code at the end of rbd_init_disk() that sets the device
capacity and activates the Linux device out of that function and
into the caller, ensuring we still have the disk size available
where we need it.

Update rbd_free_disk() so it still aligns well as an inverse of
rbd_init_disk(), moving the rbd_header_free() call out to its
caller.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c
This page took 0.02664 seconds and 5 git commands to generate.