projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3951414
)
[PATCH] Fix buflen trimming
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Feb 2007 19:18:42 +0000
(20:18 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Feb 2007 19:18:42 +0000
(20:18 +0100)
It's ok to trim to the minimum block size for RAWIO.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index 89ece538c570391b8812957f2e4a428d1ab1bb65..29c23f6f0a44a48abf2fb4ea1367b75ac4964f68 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-138,13
+138,6
@@
static unsigned int get_next_buflen(struct thread_data *td, struct fio_file *f,
}
while (buflen + io_u->offset > f->real_file_size) {
- /*
- * if using direct/raw io, we may not be able to
- * shrink the size. so just fail it.
- */
- if (td->io_ops->flags & FIO_RAWIO)
- return 0;
-
if (buflen == td->min_bs[ddir])
return 0;