]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: kill rbd_req_coll and rbd_request
authorAlex Elder <elder@inktank.com>
Fri, 30 Nov 2012 23:53:04 +0000 (17:53 -0600)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:29:07 +0000 (18:29 -0800)
commit043cace332aedd028389ff43969127bf2d63973d
treed5517f5531aafeb07b607816fe50e0daa1f0ad49
parent1c9bd27291669dbe6440705bb422eed762f1805b
rbd: kill rbd_req_coll and rbd_request

The two remaining callers of rbd_do_request() always pass a null
collection pointer, so the "coll" and "coll_index" parameters are
not needed.  There is no other use of that data structure, so it
can be eliminated.

Deleting them means there is no need to allocate a rbd_request
structure for the callback function.  And since that's the only use
of *that* structure, it too can be eliminated.

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