diff options
| author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-17 08:32:49 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-17 08:32:49 -0400 |
| commit | 214e2ca2b82d335935a861c253fe94c61ad77aad (patch) | |
| tree | eee42ff74d10470789d919b8499737ad0e919360 /include/linux/interval_tree.h | |
| parent | 1fdead8ad31d3aa833bc37739273fcde89ace93c (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge tag 'v3.7-rc1' into staging/for_v3.8
Linux 3.7-rc1
* tag 'v3.7-rc1': (9579 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/linux/interval_tree.h')
| -rw-r--r-- | include/linux/interval_tree.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/interval_tree.h b/include/linux/interval_tree.h new file mode 100644 index 000000000000..724556aa3c95 --- /dev/null +++ b/include/linux/interval_tree.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef _LINUX_INTERVAL_TREE_H | ||
| 2 | #define _LINUX_INTERVAL_TREE_H | ||
| 3 | |||
| 4 | #include <linux/rbtree.h> | ||
| 5 | |||
| 6 | struct interval_tree_node { | ||
| 7 | struct rb_node rb; | ||
| 8 | unsigned long start; /* Start of interval */ | ||
| 9 | unsigned long last; /* Last location _in_ interval */ | ||
| 10 | unsigned long __subtree_last; | ||
| 11 | }; | ||
| 12 | |||
| 13 | extern void | ||
| 14 | interval_tree_insert(struct interval_tree_node *node, struct rb_root *root); | ||
| 15 | |||
| 16 | extern void | ||
| 17 | interval_tree_remove(struct interval_tree_node *node, struct rb_root *root); | ||
| 18 | |||
| 19 | extern struct interval_tree_node * | ||
| 20 | interval_tree_iter_first(struct rb_root *root, | ||
| 21 | unsigned long start, unsigned long last); | ||
| 22 | |||
| 23 | extern struct interval_tree_node * | ||
| 24 | interval_tree_iter_next(struct interval_tree_node *node, | ||
| 25 | unsigned long start, unsigned long last); | ||
| 26 | |||
| 27 | #endif /* _LINUX_INTERVAL_TREE_H */ | ||
