diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-03-26 04:39:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:10 -0500 |
commit | 67b0ad574b5ee90f8ea58196ff8a7f3780b75365 (patch) | |
tree | ca9bc212f6efa8f5170185ef1fa21f75de0684fd /include/asm-v850 | |
parent | 72b61a3cfd80d1321eb898be8ceae2064f0fbea1 (diff) |
[PATCH] bitops: use non atomic operations for minix_*_bit() and ext2_*_bit()
Bitmap functions for the minix filesystem and the ext2 filesystem except
ext2_set_bit_atomic() and ext2_clear_bit_atomic() do not require the atomic
guarantees.
But these are defined by using atomic bit operations on several architectures.
(cris, frv, h8300, ia64, m32r, m68k, m68knommu, mips, s390, sh, sh64, sparc,
sparc64, v850, and xtensa)
This patch switches to non atomic bit operation.
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-v850')
-rw-r--r-- | include/asm-v850/bitops.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-v850/bitops.h b/include/asm-v850/bitops.h index 609b9e87222a..44d596e792e7 100644 --- a/include/asm-v850/bitops.h +++ b/include/asm-v850/bitops.h | |||
@@ -336,18 +336,18 @@ static inline int sched_find_first_bit(unsigned long *b) | |||
336 | #define hweight16(x) generic_hweight16 (x) | 336 | #define hweight16(x) generic_hweight16 (x) |
337 | #define hweight8(x) generic_hweight8 (x) | 337 | #define hweight8(x) generic_hweight8 (x) |
338 | 338 | ||
339 | #define ext2_set_bit test_and_set_bit | 339 | #define ext2_set_bit __test_and_set_bit |
340 | #define ext2_set_bit_atomic(l,n,a) test_and_set_bit(n,a) | 340 | #define ext2_set_bit_atomic(l,n,a) test_and_set_bit(n,a) |
341 | #define ext2_clear_bit test_and_clear_bit | 341 | #define ext2_clear_bit __test_and_clear_bit |
342 | #define ext2_clear_bit_atomic(l,n,a) test_and_clear_bit(n,a) | 342 | #define ext2_clear_bit_atomic(l,n,a) test_and_clear_bit(n,a) |
343 | #define ext2_test_bit test_bit | 343 | #define ext2_test_bit test_bit |
344 | #define ext2_find_first_zero_bit find_first_zero_bit | 344 | #define ext2_find_first_zero_bit find_first_zero_bit |
345 | #define ext2_find_next_zero_bit find_next_zero_bit | 345 | #define ext2_find_next_zero_bit find_next_zero_bit |
346 | 346 | ||
347 | /* Bitmap functions for the minix filesystem. */ | 347 | /* Bitmap functions for the minix filesystem. */ |
348 | #define minix_test_and_set_bit test_and_set_bit | 348 | #define minix_test_and_set_bit __test_and_set_bit |
349 | #define minix_set_bit set_bit | 349 | #define minix_set_bit __set_bit |
350 | #define minix_test_and_clear_bit test_and_clear_bit | 350 | #define minix_test_and_clear_bit __test_and_clear_bit |
351 | #define minix_test_bit test_bit | 351 | #define minix_test_bit test_bit |
352 | #define minix_find_first_zero_bit find_first_zero_bit | 352 | #define minix_find_first_zero_bit find_first_zero_bit |
353 | 353 | ||