Commit 70b19876 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner
Browse files

drbd: Improve the drbd_find_overlap() documentation



Describe how to reach any further overlapping intervals from the first
overlap found.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 43ae077d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -122,9 +122,11 @@ drbd_remove_interval(struct rb_root *root, struct drbd_interval *this)
 * @sector:	start sector
 * @size:	size, aligned to 512 bytes
 *
 * Returns the interval overlapping with [sector, sector + size), or NULL.
 * When there is more than one overlapping interval in the tree, the interval
 * with the lowest start sector is returned.
 * Returns an interval overlapping with [sector, sector + size), or NULL if
 * there is none.  When there is more than one overlapping interval in the
 * tree, the interval with the lowest start sector is returned, and all other
 * overlapping intervals will be on the right side of the tree, reachable with
 * rb_next().
 */
struct drbd_interval *
drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size)