提交 6618bf16 编写于 作者: A Andreas Gruenbacher 提交者: Philipp Reisner

drbd: Interval tree bugfix

Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 e3cfa7b2
......@@ -58,8 +58,9 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
new = &(*new)->rb_right;
else if (this < here)
new = &(*new)->rb_left;
else if (this->sector > here->sector)
else if (this > here)
new = &(*new)->rb_right;
else
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册