From 14e859d8ecbbed251380ec1c973c31cf9245b047 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Mon, 15 Feb 2010 00:28:03 -0500 Subject: [PATCH] ustd: add FIXME --- ustd/lowlevel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ustd/lowlevel.c b/ustd/lowlevel.c index 6565749..a79b494 100644 --- a/ustd/lowlevel.c +++ b/ustd/lowlevel.c @@ -112,6 +112,8 @@ void finish_consuming_dead_subbuffer(struct buffer_info *buf) } /* Check if subbuf was fully written. This is from Mathieu's algorithm/paper. */ + /* FIXME: not sure data_size = 0xffffffff when the buffer is not full. It might + * take the value of the header size initially */ if (((commit_seq - buf->subbuf_size) & commit_seq_mask) - (USTD_BUFFER_TRUNC(consumed_offset, buf) >> n_subbufs_order) == 0 && header->data_size != 0xffffffff && header->sb_size != 0xffffffff) { -- 2.34.1