mirror of https://gitee.com/openkylin/linux.git
drbd: Interval tree bugfix
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
e3cfa7b26a
commit
6618bf1638
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue