]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: drop "object_name" from rbd_req_sync_watch()
authorAlex Elder <elder@inktank.com>
Wed, 25 Jul 2012 14:32:40 +0000 (09:32 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:52 +0000 (18:15 -0700)
commit9b32b3023d189d04e3ab3de5f67d027d19c9bd60
treee941cdba172c02286b1528f530cbeb8b984347d1
parentd831030eb306a8d524b0eeb66c0a48a11cd19676
rbd: drop "object_name" from rbd_req_sync_watch()

rbd_req_sync_watch() is only called in one place, and in that place
it passes rbd_dev->header_name as the value of the "object_name"
parameter.  This value is available within the function already.

Having the extra parameter leaves the impression the object name
could take on different values, but it does not.

So get rid of the parameter.  We can always add it back again if
we find we want to watch some other object in the future.

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