]> 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)
commit1afe1ee806f9382a08e26a276e9ab358143ed485
treee941cdba172c02286b1528f530cbeb8b984347d1
parent19e356c2d46ed959c20976898d2aca1c0f58b83a
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