aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_worker.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-07-21 04:20:17 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 12:38:15 -0400
commit85719573dd716bc2ac3e098b44adfed884250bab (patch)
tree494e7797c923c7c584dc3c16d4d6ab2fcd6996a0 /drivers/block/drbd/drbd_worker.c
parentd207450cf2731c6a2afa8c78fb31c7206cd35eba (diff)
drbd: Replaced some casts by an union. Improved comments
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_worker.c')
-rw-r--r--drivers/block/drbd/drbd_worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c
index 30b8e466a224..f979e22cc6fb 100644
--- a/drivers/block/drbd/drbd_worker.c
+++ b/drivers/block/drbd/drbd_worker.c
@@ -1018,7 +1018,7 @@ int w_e_end_csum_rs_req(struct drbd_conf *mdev, struct drbd_work *w, int cancel)
1018 1018
1019 drbd_rs_complete_io(mdev, e->sector); 1019 drbd_rs_complete_io(mdev, e->sector);
1020 1020
1021 di = (struct digest_info *)(unsigned long)e->block_id; 1021 di = e->digest;
1022 1022
1023 if (likely((e->flags & EE_WAS_ERROR) == 0)) { 1023 if (likely((e->flags & EE_WAS_ERROR) == 0)) {
1024 /* quick hack to try to avoid a race against reconfiguration. 1024 /* quick hack to try to avoid a race against reconfiguration.
@@ -1126,7 +1126,7 @@ int w_e_end_ov_reply(struct drbd_conf *mdev, struct drbd_work *w, int cancel)
1126 * the resync lru has been cleaned up already */ 1126 * the resync lru has been cleaned up already */
1127 drbd_rs_complete_io(mdev, e->sector); 1127 drbd_rs_complete_io(mdev, e->sector);
1128 1128
1129 di = (struct digest_info *)(unsigned long)e->block_id; 1129 di = e->digest;
1130 1130
1131 if (likely((e->flags & EE_WAS_ERROR) == 0)) { 1131 if (likely((e->flags & EE_WAS_ERROR) == 0)) {
1132 digest_size = crypto_hash_digestsize(mdev->verify_tfm); 1132 digest_size = crypto_hash_digestsize(mdev->verify_tfm);