drbd: Fix regression in recv_bm_rle_bits (compressed bitmap)
commit004352fa60345e499379af310de73a2df1a5762a
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 5 Oct 2010 18:13:58 +0000 (5 20:13 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 16:38:44 +0000 (14 18:38 +0200)
tree6a5e0651d30b1c7e4c0964875e44b23aad7f8ea8
parentf10f262349762c96ab247b6108af3a30b52b6f5a
drbd: Fix regression in recv_bm_rle_bits (compressed bitmap)

We used to be16_to_cpu the length field in our received packet header.
drbd commit 17c854fea474a5eb3cfa12e4fb019e46debbc4ec
    drbd: receiving of big packets, for payloads between 64kByte and 4GByte
changed this, but forgot to adjust a few places where we relied on
h->length being in native byte order.

This broke the receiving side of the RLE compressed bitmap exchange.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c