mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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
@ -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 New Issue
Block a user