bitops: remove ext2 non-atomic bitops from asm/bitops.h
As the result of conversions, there are no users of ext2 non-atomic bit operations except for ext2 filesystem itself. Now we can put them into architecture independent code in ext2 filesystem, and remove from asm/bitops.h for all architectures. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
bb5cda3d70
commit
f312eff816
@@ -339,18 +339,11 @@ static inline int find_next_bit_le(const void *p, int size, int offset)
|
||||
|
||||
/*
|
||||
* Ext2 is defined to use little-endian byte ordering.
|
||||
* These do not need to be atomic.
|
||||
*/
|
||||
#define ext2_set_bit __test_and_set_bit_le
|
||||
#define ext2_set_bit_atomic(lock, nr, p) \
|
||||
test_and_set_bit_le(nr, p)
|
||||
#define ext2_clear_bit __test_and_clear_bit_le
|
||||
#define ext2_clear_bit_atomic(lock, nr, p) \
|
||||
test_and_clear_bit_le(nr, p)
|
||||
#define ext2_test_bit test_bit_le
|
||||
#define ext2_find_first_zero_bit find_first_zero_bit_le
|
||||
#define ext2_find_next_zero_bit find_next_zero_bit_le
|
||||
#define ext2_find_next_bit find_next_bit_le
|
||||
|
||||
/*
|
||||
* Minix is defined to use little-endian byte ordering.
|
||||
|
Reference in New Issue
Block a user