X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fradix-tree.h;h=9158a68140c9e0e96dd3cbf98acb13a3a0babd92;hb=612d6c19db2fd0dc97b0fa370613ecd4a305ffc3;hp=36e5d269612fec7ce193f2edee5fd816af353650;hpb=7669a22592fc6cc7ac03f55a7db8d23ce938f1dc;p=powerpc.git diff --git a/include/linux/radix-tree.h b/include/linux/radix-tree.h index 36e5d26961..9158a68140 100644 --- a/include/linux/radix-tree.h +++ b/include/linux/radix-tree.h @@ -19,9 +19,13 @@ #ifndef _LINUX_RADIX_TREE_H #define _LINUX_RADIX_TREE_H +#include #include #include +#define RADIX_TREE_MAX_TAGS 2 + +/* root tags are stored in gfp_mask, shifted by __GFP_BITS_SHIFT */ struct radix_tree_root { unsigned int height; gfp_t gfp_mask; @@ -54,15 +58,16 @@ radix_tree_gang_lookup(struct radix_tree_root *root, void **results, int radix_tree_preload(gfp_t gfp_mask); void radix_tree_init(void); void *radix_tree_tag_set(struct radix_tree_root *root, - unsigned long index, int tag); + unsigned long index, unsigned int tag); void *radix_tree_tag_clear(struct radix_tree_root *root, - unsigned long index, int tag); + unsigned long index, unsigned int tag); int radix_tree_tag_get(struct radix_tree_root *root, - unsigned long index, int tag); + unsigned long index, unsigned int tag); unsigned int radix_tree_gang_lookup_tag(struct radix_tree_root *root, void **results, - unsigned long first_index, unsigned int max_items, int tag); -int radix_tree_tagged(struct radix_tree_root *root, int tag); + unsigned long first_index, unsigned int max_items, + unsigned int tag); +int radix_tree_tagged(struct radix_tree_root *root, unsigned int tag); static inline void radix_tree_preload_end(void) {