]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: have rbd_get_client() return a rbd_client
authorAlex Elder <elder@dreamhost.com>
Thu, 2 Feb 2012 14:13:30 +0000 (08:13 -0600)
committerAlex Elder <elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:48 +0000 (10:47 -0500)
commit78868c6e73a44555da75ab581501512aaddc23f6
tree9df53a7ff220547c7150be803c8a3e8cca0664b1
parent2d22b413a1666f9218437ff729b87e7bb6f21011
rbd: have rbd_get_client() return a rbd_client

Since rbd_get_client() currently returns an error code.  It assigns
the rbd_client field of the rbd_device structure it is passed if
successful.  Instead, have it return the created rbd_client
structure and return a pointer-coded error if there is an error.
This makes the assignment of the client pointer more obvious at the
call site.

Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
drivers/block/rbd.c