diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-08-09 02:49:01 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:49:36 +0100 |
commit | 79a3c8d38cabd1a900340852e527b0a4ce8a459d (patch) | |
tree | 6fb1960556f05c84749c54ed124ccb47a0127e2e /drivers/block/drbd/drbd_worker.c | |
parent | 753c619195bc6b5bb799942ed1eeffe21b26b68c (diff) | |
download | linux-stable-79a3c8d38cabd1a900340852e527b0a4ce8a459d.tar.gz linux-stable-79a3c8d38cabd1a900340852e527b0a4ce8a459d.tar.bz2 linux-stable-79a3c8d38cabd1a900340852e527b0a4ce8a459d.zip |
drbd: drbd_csum_bio(), drbd_csum_ee(): Remove unused device argument
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r-- | drivers/block/drbd/drbd_worker.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index 1ba8f8ec1525..b587b8421aa5 100644 --- a/drivers/block/drbd/drbd_worker.c +++ b/drivers/block/drbd/drbd_worker.c @@ -282,8 +282,7 @@ void drbd_request_endio(struct bio *bio, int error) complete_master_bio(device, &m); } -void drbd_csum_ee(struct drbd_device *device, struct crypto_hash *tfm, - struct drbd_peer_request *peer_req, void *digest) +void drbd_csum_ee(struct crypto_hash *tfm, struct drbd_peer_request *peer_req, void *digest) { struct hash_desc desc; struct scatterlist sg; @@ -310,7 +309,7 @@ void drbd_csum_ee(struct drbd_device *device, struct crypto_hash *tfm, crypto_hash_final(&desc, digest); } -void drbd_csum_bio(struct drbd_device *device, struct crypto_hash *tfm, struct bio *bio, void *digest) +void drbd_csum_bio(struct crypto_hash *tfm, struct bio *bio, void *digest) { struct hash_desc desc; struct scatterlist sg; @@ -350,7 +349,7 @@ static int w_e_send_csum(struct drbd_work *w, int cancel) if (digest) { sector_t sector = peer_req->i.sector; unsigned int size = peer_req->i.size; - drbd_csum_ee(device, first_peer_device(device)->connection->csums_tfm, peer_req, digest); + drbd_csum_ee(first_peer_device(device)->connection->csums_tfm, peer_req, digest); /* Free peer_req and pages before send. * In case we block on congestion, we could otherwise run into * some distributed deadlock, if the other side blocks on @@ -1103,7 +1102,7 @@ int w_e_end_csum_rs_req(struct drbd_work *w, int cancel) digest = kmalloc(digest_size, GFP_NOIO); } if (digest) { - drbd_csum_ee(device, first_peer_device(device)->connection->csums_tfm, peer_req, digest); + drbd_csum_ee(first_peer_device(device)->connection->csums_tfm, peer_req, digest); eq = !memcmp(digest, di->digest, digest_size); kfree(digest); } @@ -1155,7 +1154,7 @@ int w_e_end_ov_req(struct drbd_work *w, int cancel) } if (likely(!(peer_req->flags & EE_WAS_ERROR))) - drbd_csum_ee(device, first_peer_device(device)->connection->verify_tfm, peer_req, digest); + drbd_csum_ee(first_peer_device(device)->connection->verify_tfm, peer_req, digest); else memset(digest, 0, digest_size); @@ -1221,7 +1220,7 @@ int w_e_end_ov_reply(struct drbd_work *w, int cancel) digest_size = crypto_hash_digestsize(first_peer_device(device)->connection->verify_tfm); digest = kmalloc(digest_size, GFP_NOIO); if (digest) { - drbd_csum_ee(device, first_peer_device(device)->connection->verify_tfm, peer_req, digest); + drbd_csum_ee(first_peer_device(device)->connection->verify_tfm, peer_req, digest); D_ASSERT(device, digest_size == di->digest_size); eq = !memcmp(digest, di->digest, digest_size); |