]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: kill rbd_device->rbd_opts
authorAlex Elder <elder@inktank.com>
Mon, 22 Oct 2012 16:31:27 +0000 (11:31 -0500)
committerAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 22:18:08 +0000 (17:18 -0500)
commitf9c25085a2bfd29810da6f5d3a12ce55bb28fa42
tree11da2b9b40cd80d3b74e48a68284dff3e1268132
parent9e88145e40d03f7a64c99e68110eec32acd5623d
rbd: kill rbd_device->rbd_opts

The rbd_device structure has an embedded rbd_options structure.
Such a structure is needed to work with the generic ceph argument
parsing code, but there's no need to keep it around once argument
parsing is done.

Use a local variable to hold the rbd options used in parsing in
rbd_get_client(), and just transfer its content (it's just a
read_only flag) into the field in the rbd_mapping sub-structure
that requires that information.

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