diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2011-03-23 19:42:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 22:46:21 -0400 |
commit | f312eff8164879e04923d41e9dd23e7850937d85 (patch) | |
tree | 9f4f6fd00ebf12afd5b070c44d12b55a29440360 /arch/powerpc | |
parent | bb5cda3d706f44e5696533c9a7353c458f2871e0 (diff) |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/bitops.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h index 0c1046fbdd24..e3bd9a3bcb43 100644 --- a/arch/powerpc/include/asm/bitops.h +++ b/arch/powerpc/include/asm/bitops.h | |||
@@ -327,25 +327,11 @@ unsigned long find_next_bit_le(const void *addr, | |||
327 | unsigned long size, unsigned long offset); | 327 | unsigned long size, unsigned long offset); |
328 | /* Bitmap functions for the ext2 filesystem */ | 328 | /* Bitmap functions for the ext2 filesystem */ |
329 | 329 | ||
330 | #define ext2_set_bit(nr,addr) \ | ||
331 | __test_and_set_bit_le((nr), (unsigned long*)addr) | ||
332 | #define ext2_clear_bit(nr, addr) \ | ||
333 | __test_and_clear_bit_le((nr), (unsigned long*)addr) | ||
334 | |||
335 | #define ext2_set_bit_atomic(lock, nr, addr) \ | 330 | #define ext2_set_bit_atomic(lock, nr, addr) \ |
336 | test_and_set_bit_le((nr), (unsigned long*)addr) | 331 | test_and_set_bit_le((nr), (unsigned long*)addr) |
337 | #define ext2_clear_bit_atomic(lock, nr, addr) \ | 332 | #define ext2_clear_bit_atomic(lock, nr, addr) \ |
338 | test_and_clear_bit_le((nr), (unsigned long*)addr) | 333 | test_and_clear_bit_le((nr), (unsigned long*)addr) |
339 | 334 | ||
340 | #define ext2_test_bit(nr, addr) test_bit_le((nr),(unsigned long*)addr) | ||
341 | |||
342 | #define ext2_find_first_zero_bit(addr, size) \ | ||
343 | find_first_zero_bit_le((unsigned long*)addr, size) | ||
344 | #define ext2_find_next_zero_bit(addr, size, off) \ | ||
345 | find_next_zero_bit_le((unsigned long *)addr, size, off) | ||
346 | |||
347 | #define ext2_find_next_bit(addr, size, off) \ | ||
348 | find_next_bit_le((unsigned long *)addr, size, off) | ||
349 | /* Bitmap functions for the minix filesystem. */ | 335 | /* Bitmap functions for the minix filesystem. */ |
350 | 336 | ||
351 | #define minix_test_and_set_bit(nr,addr) \ | 337 | #define minix_test_and_set_bit(nr,addr) \ |