]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: consolidate rbd_dev init in rbd_add()
authorAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 04:34:42 +0000 (23:34 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 1 Nov 2012 12:55:42 +0000 (07:55 -0500)
commitb65db59fe410bcc028e1ddcea53b4da00ba350ac
tree18080b60df8735e40ec5e5e8ec30461377eaa162
parent2a1c2ace9d75bb696c279ce75d328791ccdb40b1
rbd: consolidate rbd_dev init in rbd_add()

Group the allocation and initialization of fields of the rbd device
structure created in rbd_add().  Move the grouped code down later in
the function, just prior to the call to rbd_dev_probe().  This is
for the most part simple code movement.

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