asm-generic: use little-endian bitops
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> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
861b5ae7cd
commit
c56530055a
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
({ \
|
||||
int ret; \
|
||||
spin_lock(lock); \
|
||||
ret = ext2_set_bit((nr), (unsigned long *)(addr)); \
|
||||
ret = __test_and_set_bit_le(nr, addr); \
|
||||
spin_unlock(lock); \
|
||||
ret; \
|
||||
})
|
||||
|
@ -14,7 +14,7 @@
|
|||
({ \
|
||||
int ret; \
|
||||
spin_lock(lock); \
|
||||
ret = ext2_clear_bit((nr), (unsigned long *)(addr)); \
|
||||
ret = __test_and_clear_bit_le(nr, addr); \
|
||||
spin_unlock(lock); \
|
||||
ret; \
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue