summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-24 12:45:36 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-24 12:45:36 -0400
commit0b3c55b251fb6d0a47d0ca904e160f64d6d7556c (patch)
tree67d83183b589f5a2b5f1bc68a52de7acf1c3a11a
parent49bedc2cb4412606ae12e136d31888ea6c64b37c (diff)
add bit-radix.h to the repo
-rw-r--r--bit-radix.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/bit-radix.h b/bit-radix.h
new file mode 100644
index 00000000..153d0bf7
--- /dev/null
+++ b/bit-radix.h
@@ -0,0 +1,15 @@
+#ifndef __BIT_RADIX__
+#define __BIT_RADIX__
+#include "radix-tree.h"
+
+int set_radix_bit(struct radix_tree_root *radix, unsigned long bit);
+int test_radix_bit(struct radix_tree_root *radix, unsigned long bit);
+int clear_radix_bit(struct radix_tree_root *radix, unsigned long bit);
+int find_first_radix_bit(struct radix_tree_root *radix, unsigned long *retbits,
+ unsigned long start, int nr);
+
+static inline void init_bit_radix(struct radix_tree_root *radix)
+{
+ INIT_RADIX_TREE(radix, GFP_NOFS);
+}
+#endif