aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_actlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/drbd/drbd_actlog.c')
-rw-r--r--drivers/block/drbd/drbd_actlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c
index cf0e63dd97da..0eb17d3adf21 100644
--- a/drivers/block/drbd/drbd_actlog.c
+++ b/drivers/block/drbd/drbd_actlog.c
@@ -407,7 +407,7 @@ static int drbd_al_read_tr(struct drbd_conf *mdev,
407 if (!drbd_md_sync_page_io(mdev, bdev, sector, READ)) 407 if (!drbd_md_sync_page_io(mdev, bdev, sector, READ))
408 return -1; 408 return -1;
409 409
410 rv = (be32_to_cpu(b->magic) == DRBD_MAGIC); 410 rv = (b->magic == cpu_to_be32(DRBD_MAGIC));
411 411
412 for (i = 0; i < AL_EXTENTS_PT + 1; i++) 412 for (i = 0; i < AL_EXTENTS_PT + 1; i++)
413 xor_sum ^= be32_to_cpu(b->updates[i].extent); 413 xor_sum ^= be32_to_cpu(b->updates[i].extent);