]> git.baikalelectronics.ru Git - kernel.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)
commita989b95707363ed19219a58cdac364d0c4db500f
treee4fd15b54785a9134977259346cd01e67bc988c9
parente2ea9fa73efc8b62d37d3ec69ae82ef057b8d87b
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