[PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()
authorAkinobu Mita <mita@miraclelinux.com>
Sun, 26 Mar 2006 09:39:15 +0000 (01:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:11 +0000 (08:57 -0800)
commit930ae745f50088279fdc06057a429f16495b53a2
tree13f8a66445f1f9730280ec3318127c50b4bc8e46
parenta54baa1487c51c8306dd6f457c1b5d5fcd539fff
[PATCH] bitops: generic ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()

This patch introduces the C-language equivalents of the functions below:

int ext2_set_bit(int nr, volatile unsigned long *addr);
int ext2_clear_bit(int nr, volatile unsigned long *addr);
int ext2_test_bit(int nr, const volatile unsigned long *addr);
unsigned long ext2_find_first_zero_bit(const unsigned long *addr,
                                       unsigned long size);
unsinged long ext2_find_next_zero_bit(const unsigned long *addr,
                                      unsigned long size);

In include/asm-generic/bitops/ext2-non-atomic.h

This code largely copied from:

include/asm-powerpc/bitops.h
include/asm-parisc/bitops.h

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-generic/bitops/ext2-non-atomic.h [new file with mode: 0644]
include/asm-generic/bitops/le.h [new file with mode: 0644]
lib/find_next_bit.c