]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rbd: introduce rbd_init_layout()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 25 Jan 2017 17:16:22 +0000 (18:16 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Feb 2017 11:16:14 +0000 (12:16 +0100)
commit263423f8adf4acbdc4fd26ed5b35f4a6408bc0ab
treee4fd15b54785a9134977259346cd01e67bc988c9
parent5bc3fb177548503735bcc35fe98475d883740ecb
rbd: introduce rbd_init_layout()

Rather than initializing layout fields with some made up values in
__rbd_dev_create(), move the initialization into rbd_init_layout() and
call it after the header is actually populated.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c