commit | 263423f8adf4acbdc4fd26ed5b35f4a6408bc0ab | [log] [tgz] |
---|---|---|
author | Ilya Dryomov <idryomov@gmail.com> | Wed Jan 25 18:16:22 2017 +0100 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Feb 20 12:16:14 2017 +0100 |
tree | e4fd15b54785a9134977259346cd01e67bc988c9 | |
parent | 5bc3fb177548503735bcc35fe98475d883740ecb [diff] |
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>