Skip to content

Commit

Permalink
drbd: Interval tree bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Andreas Gruenbacher authored and Philipp Reisner committed Aug 29, 2011
1 parent e3cfa7b commit 6618bf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/block/drbd/drbd_interval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6618bf1

Please sign in to comment.