projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor #includes and headers
[fio.git]
/
engines
/
falloc.c
diff --git
a/engines/falloc.c
b/engines/falloc.c
index 8025085baddae612c6f9f6f174a7ec0aaf8b29cc..bb3ac85045b2f16fd650abe2c2081371acd6f2c1 100644
(file)
--- a/
engines/falloc.c
+++ b/
engines/falloc.c
@@
-9,11
+9,7
@@
*
*/
#include <stdio.h>
*
*/
#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/uio.h>
#include <errno.h>
#include <errno.h>
-#include <assert.h>
#include <fcntl.h>
#include "../fio.h"
#include <fcntl.h>
#include "../fio.h"
@@
-23,7
+19,7
@@
* generic_open_file is not appropriate because does not allow to perform
* TRIM in to file
*/
* generic_open_file is not appropriate because does not allow to perform
* TRIM in to file
*/
-int open_file(struct thread_data *td, struct fio_file *f)
+
static
int open_file(struct thread_data *td, struct fio_file *f)
{
int from_hash = 0;
{
int from_hash = 0;
@@
-43,9
+39,10
@@
open_again:
if (f->fd == -1) {
char buf[FIO_VERROR_SIZE];
if (f->fd == -1) {
char buf[FIO_VERROR_SIZE];
- int __e = errno;
+ int e = errno;
+
snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
snprintf(buf, sizeof(buf), "open(%s)", f->file_name);
- td_verror(td,
__
e, buf);
+ td_verror(td, e, buf);
}
if (!from_hash && f->fd != -1) {
}
if (!from_hash && f->fd != -1) {