summaryrefslogtreecommitdiffstats
path: root/drivers/block/ps3vram.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-07-10 20:30:10 -0500
committerAlex Elder <elder@inktank.com>2012-10-01 14:30:51 -0500
commit2ac4e75d89e9df8eea6390a759eac2b6df0ebff6 (patch)
tree77e02e2fa3376325ff7c93aaf469369e15eb1928 /drivers/block/ps3vram.c
parent8836b995fd192dba23d312d2a4fba68dd8ca7183 (diff)
downloadblackbird-op-linux-2ac4e75d89e9df8eea6390a759eac2b6df0ebff6.tar.gz
blackbird-op-linux-2ac4e75d89e9df8eea6390a759eac2b6df0ebff6.zip
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>
Diffstat (limited to 'drivers/block/ps3vram.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud