* [to-be-updated] dm-use-little-endian-bit-operations.patch removed from -mm tree
@ 2011-01-13 19:44 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2011-01-13 19:44 UTC (permalink / raw)
To: akinobu.mita, agk, mm-commits
The patch titled
dm: use little-endian bit operations
has been removed from the -mm tree. Its filename was
dm-use-little-endian-bit-operations.patch
This patch was dropped because an updated version will be merged
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: dm: use little-endian bit operations
From: Akinobu Mita <akinobu.mita@gmail.com>
As a preparation for removing ext2 non-atomic bit operations from
asm/bitops.h. This converts ext2 non-atomic bit operations to
little-endian bit operations.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Alasdair Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/md/dm-log.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -puN drivers/md/dm-log.c~dm-use-little-endian-bit-operations drivers/md/dm-log.c
--- a/drivers/md/dm-log.c~dm-use-little-endian-bit-operations
+++ a/drivers/md/dm-log.c
@@ -251,20 +251,20 @@ struct log_c {
*/
static inline int log_test_bit(uint32_t *bs, unsigned bit)
{
- return ext2_test_bit(bit, (unsigned long *) bs) ? 1 : 0;
+ return test_le_bit(bit, (unsigned long *) bs) ? 1 : 0;
}
static inline void log_set_bit(struct log_c *l,
uint32_t *bs, unsigned bit)
{
- ext2_set_bit(bit, (unsigned long *) bs);
+ __test_and_set_le_bit(bit, (unsigned long *) bs);
l->touched_cleaned = 1;
}
static inline void log_clear_bit(struct log_c *l,
uint32_t *bs, unsigned bit)
{
- ext2_clear_bit(bit, (unsigned long *) bs);
+ __test_and_clear_le_bit(bit, (unsigned long *) bs);
l->touched_dirtied = 1;
}
@@ -740,7 +740,7 @@ static int core_get_resync_work(struct d
return 0;
do {
- *region = ext2_find_next_zero_bit(
+ *region = find_next_zero_le_bit(
(unsigned long *) lc->sync_bits,
lc->region_count,
lc->sync_search);
_
Patches currently in -mm which might be from akinobu.mita@gmail.com are
origin.patch
bitops-remove-ext2-non-atomic-bitops-from-asm-bitopsh.patch
m68k-remove-inline-asm-from-minix_find_first_zero_bit.patch
bitops-remove-minix-bitops-from-asm-bitopsh.patch
bitops-use-find_first_zero_bit-instead-of-find_next_zero_bitaddr-size-0.patch
spufs-use-simple_write_to_buffer.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-13 19:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13 19:44 [to-be-updated] dm-use-little-endian-bit-operations.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.