aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_receiver.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-01-11 08:04:09 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-08-25 08:57:55 -0400
commit9a8e77530fa7059044114bcf1a897a470ec21bc9 (patch)
tree2561f734e7a3054bdf151495311cde4a582189e5 /drivers/block/drbd/drbd_receiver.c
parent3980485361f5f71e559c6b8868bb5a1c41171407 (diff)
drbd: Consistently use block_id == ID_SYNCER for checksum based resync and online verify
DRBD_MAGIC has nothing to do with block ids and the funny values computed were not actually used, anyway. 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_receiver.c')
-rw-r--r--drivers/block/drbd/drbd_receiver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index d499aa6b7ac0..5ed96198538b 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -341,6 +341,10 @@ struct drbd_epoch_entry *drbd_alloc_ee(struct drbd_conf *mdev,
341 e->size = data_size; 341 e->size = data_size;
342 e->flags = 0; 342 e->flags = 0;
343 e->sector = sector; 343 e->sector = sector;
344 /*
345 * The block_id is opaque to the receiver. It is not endianness
346 * converted, and sent back to the sender unchanged.
347 */
344 e->block_id = id; 348 e->block_id = id;
345 349
346 return e; 350 return e;