projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
output_buffer: only realloc once, and memset just what we need
[fio.git]
/
engines
/
e4defrag.c
diff --git
a/engines/e4defrag.c
b/engines/e4defrag.c
index 3599ab8a49ce708087c4ac88b18b74bd728bec95..d6113a97ee9b6565dbdf8e5dc0381491bf6b61a4 100644
(file)
--- a/
engines/e4defrag.c
+++ b/
engines/e4defrag.c
@@
-36,7
+36,7
@@
struct e4defrag_data {
};
struct e4defrag_options {
};
struct e4defrag_options {
-
struct thread_data *t
d;
+
void *pa
d;
unsigned int inplace;
char * donor_name;
};
unsigned int inplace;
char * donor_name;
};
@@
-98,8
+98,8
@@
static int fio_e4defrag_init(struct thread_data *td)
}
if (!o->inplace) {
}
if (!o->inplace) {
- long long len = td->o.file_size_high - td->o.start_offset;
- r = fallocate(ed->donor_fd, 0, td->o.start_offset, len);
+ long long
__
len = td->o.file_size_high - td->o.start_offset;
+ r = fallocate(ed->donor_fd, 0, td->o.start_offset,
__
len);
if (r)
goto err;
}
if (r)
goto err;
}