Commit 6618bf16 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

drbd: Interval tree bugfix

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent e3cfa7b2
...@@ -58,8 +58,9 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) ...@@ -58,8 +58,9 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
new = &(*new)->rb_right; new = &(*new)->rb_right;
else if (this < here) else if (this < here)
new = &(*new)->rb_left; new = &(*new)->rb_left;
else if (this->sector > here->sector) else if (this > here)
new = &(*new)->rb_right; new = &(*new)->rb_right;
else
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment