Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58093
b: refs/heads/master
c: 8d62fde
h: refs/heads/master
i:
  58091: 144fb6e
v: v3
  • Loading branch information
David Wilder authored and Linus Torvalds committed Jun 28, 2007
1 parent e01c125 commit 11ae551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea7fc3336b1d657c65daf55614d4aaadd8c1c244
refs/heads/master: 8d62fdebdaf9b866c7e236a8f5cfe90e6dba5773
3 changes: 3 additions & 0 deletions trunk/kernel/relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,10 @@ static size_t relay_file_read_start_pos(size_t read_pos,
size_t read_subbuf, padding, padding_start, padding_end;
size_t subbuf_size = buf->chan->subbuf_size;
size_t n_subbufs = buf->chan->n_subbufs;
size_t consumed = buf->subbufs_consumed % n_subbufs;

if (!read_pos)
read_pos = consumed * subbuf_size + buf->bytes_consumed;
read_subbuf = read_pos / subbuf_size;
padding = buf->padding[read_subbuf];
padding_start = (read_subbuf + 1) * subbuf_size - padding;
Expand Down

0 comments on commit 11ae551

Please sign in to comment.