]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] device-mapper log bitset: fix endian
authorPatrick Caulfield <pcaulfie@redhat.com>
Wed, 1 Feb 2006 11:04:51 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:10 +0000 (08:53 -0800)
commitd0b4dd6bdc92acc1d0a2702f72a5c4e08db7e9ad
treebce42a0cc5a6675ab50fb6b525e4418b66863fdf
parenta69a6fee9a95f3253f9a68f759f121f42052c3ad
[PATCH] device-mapper log bitset: fix endian

Clean up the code responsible for the on-disk mirror logs by using the
set_le_bit test_le_bit functions of ext2.  That makes the BE machines keep the
bitmap internally in LE order - it does mean you can't use any other type of
operations on the bitmap words but that looks to be OK in this instance.  The
efficiency tradeoff is very minimal as you would expect for something that
ext2 uses.

This allows us to remove bits_to_core(), bits_to_disk() and log->disk_bits.

Also increment the mirror log disk version transparently to avoid sharing with
older kernels that suffered from the 64-bit BE bug.

Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-log.c