drbd: store in-core bitmap little endian, regardless of architecture
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 15 Dec 2010 07:59:09 +0000 (08:59 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:36:40 +0000 (11:36 +0100)
commit95a0f10cddbf93ce89c175ac1c53dad2d20ad309
tree98866a5938a75f235fdce6ab20cfa95fe984388e
parent7777a8ba1fc980e5edfe492ebf5a1676497b8db2
drbd: store in-core bitmap little endian, regardless of architecture

Our on-disk bitmap is a little endian bitstream.
Up to now, we have stored the in-core copy of that in
native endian, applying byte order conversion when necessary.

Instead, keep the bitmap pages little endian, as they are read from disk,
and use the generic_*_le_bit family of functions.

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