projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8756e4d
)
[PATCH] fio_spliceio_event() used wrong private type
author
Jens Axboe
<axboe@suse.de>
Sat, 27 May 2006 18:32:34 +0000
(20:32 +0200)
committer
Jens Axboe
<axboe@suse.de>
Sat, 27 May 2006 18:32:34 +0000
(20:32 +0200)
fio-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fio-io.c
b/fio-io.c
index f3606e176ee9eadaf80671d73aeb0e8f56e419e1..f5d48fd25fab2f3e42b69d359a863c462205bf49 100644
(file)
--- a/
fio-io.c
+++ b/
fio-io.c
@@
-760,7
+760,7
@@
struct spliceio_data {
static struct io_u *fio_spliceio_event(struct thread_data *td, int event)
{
static struct io_u *fio_spliceio_event(struct thread_data *td, int event)
{
- struct s
ync
io_data *sd = td->io_data;
+ struct s
plice
io_data *sd = td->io_data;
assert(event == 0);
assert(event == 0);
@@
-780,7
+780,7
@@
static int fio_splice_read(struct thread_data *td, struct io_u *io_u)
buflen = io_u->buflen;
p = io_u->buf;
buflen = io_u->buflen;
p = io_u->buf;
-
do
{
+
while (buflen)
{
off_t off = io_u->offset;
ret = splice(td->fd, &off, sd->pipe[1], NULL, buflen, 0);
off_t off = io_u->offset;
ret = splice(td->fd, &off, sd->pipe[1], NULL, buflen, 0);
@@
-797,7
+797,7
@@
static int fio_splice_read(struct thread_data *td, struct io_u *io_u)
ret -= ret2;
p += ret2;
}
ret -= ret2;
p += ret2;
}
- }
while (buflen);
+ }
return io_u->buflen;
}
return io_u->buflen;
}