Michel Lespinasse | fff3fd8 | 2012-10-08 16:31:23 -0700 | [diff] [blame] | 1 | #include <linux/init.h> |
| 2 | #include <linux/interval_tree.h> |
Michel Lespinasse | 9826a51 | 2012-10-08 16:31:35 -0700 | [diff] [blame^] | 3 | #include <linux/interval_tree_generic.h> |
Michel Lespinasse | fff3fd8 | 2012-10-08 16:31:23 -0700 | [diff] [blame] | 4 | |
Michel Lespinasse | 9826a51 | 2012-10-08 16:31:35 -0700 | [diff] [blame^] | 5 | #define START(node) ((node)->start) |
| 6 | #define LAST(node) ((node)->last) |
Michel Lespinasse | fff3fd8 | 2012-10-08 16:31:23 -0700 | [diff] [blame] | 7 | |
Michel Lespinasse | 9826a51 | 2012-10-08 16:31:35 -0700 | [diff] [blame^] | 8 | INTERVAL_TREE_DEFINE(struct interval_tree_node, rb, |
| 9 | unsigned long, __subtree_last, |
| 10 | START, LAST,, interval_tree) |