diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-01-26 15:06:08 +0300 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-08-29 13:27:00 +0400 |
commit | 6618bf16384463c0b97a5f5f1f0ce5276f5865fd (patch) | |
tree | aeb979a771554d1d1df3cfd4069fde99f641d7a9 /drivers/block/drbd/drbd_interval.c | |
parent | e3cfa7b26a56cb9a3361034cc74f2aaad45d0987 (diff) | |
download | linux-6618bf16384463c0b97a5f5f1f0ce5276f5865fd.tar.xz |
drbd: Interval tree bugfix
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_interval.c')
-rw-r--r-- | drivers/block/drbd/drbd_interval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_interval.c b/drivers/block/drbd/drbd_interval.c index 2511dd9993f3..b77a9bda03d4 100644 --- a/drivers/block/drbd/drbd_interval.c +++ b/drivers/block/drbd/drbd_interval.c @@ -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; } |