projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/read-to-pipe-async: synchronization fixes
[fio.git]
/
engines
/
e4defrag.c
diff --git
a/engines/e4defrag.c
b/engines/e4defrag.c
index 3599ab8a49ce708087c4ac88b18b74bd728bec95..c0667feced3f6609bf6efaf320225c5150662da5 100644
(file)
--- a/
engines/e4defrag.c
+++ b/
engines/e4defrag.c
@@
-17,6
+17,7
@@
#include <fcntl.h>
#include "../fio.h"
#include <fcntl.h>
#include "../fio.h"
+#include "../optgroup.h"
#ifndef EXT4_IOC_MOVE_EXT
#define EXT4_IOC_MOVE_EXT _IOWR('f', 15, struct move_extent)
#ifndef EXT4_IOC_MOVE_EXT
#define EXT4_IOC_MOVE_EXT _IOWR('f', 15, struct move_extent)
@@
-36,7
+37,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
+99,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;
}