提交 f10f2623 编写于 作者: P Philipp Reisner

drbd: Fixed a stupid copy and paste error

This caused rs_planed to be not in sync with the content of the fifo.
That in turn could cause that the resync comes to a complete halt.
Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 00b42537
...@@ -421,7 +421,7 @@ static void fifo_set(struct fifo_buffer *fb, int value) ...@@ -421,7 +421,7 @@ static void fifo_set(struct fifo_buffer *fb, int value)
int i; int i;
for (i = 0; i < fb->size; i++) for (i = 0; i < fb->size; i++)
fb->values[i] += value; fb->values[i] = value;
} }
static int fifo_push(struct fifo_buffer *fb, int value) static int fifo_push(struct fifo_buffer *fb, int value)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册