Chris Mason | 8ef9762 | 2007-03-26 10:15:30 -0400 | [diff] [blame^] | 1 | #ifndef __BIT_RADIX__ |
| 2 | #define __BIT_RADIX__ |
| 3 | #include <linux/radix-tree.h> |
| 4 | |
| 5 | int set_radix_bit(struct radix_tree_root *radix, unsigned long bit); |
| 6 | int test_radix_bit(struct radix_tree_root *radix, unsigned long bit); |
| 7 | int clear_radix_bit(struct radix_tree_root *radix, unsigned long bit); |
| 8 | int find_first_radix_bit(struct radix_tree_root *radix, unsigned long *retbits, |
| 9 | int nr); |
| 10 | |
| 11 | static inline void init_bit_radix(struct radix_tree_root *radix) |
| 12 | { |
| 13 | INIT_RADIX_TREE(radix, GFP_NOFS); |
| 14 | } |
| 15 | #endif |