mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-03 10:55:20 +00:00
Stop first dirty search looping
first_dirty() forgot to stop if the tree had no dirty items at all. It'd just spin forever. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -549,6 +549,8 @@ static struct cached_item *first_dirty(struct rb_node *node)
|
||||
break;
|
||||
} else if (item->dirty & RIGHT_DIRTY) {
|
||||
node = item->node.rb_right;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user