X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fe4defrag.c;h=c0667feced3f6609bf6efaf320225c5150662da5;hb=8348daf915d4b2c3ec95a16ad803e9e42eb2bfda;hp=3599ab8a49ce708087c4ac88b18b74bd728bec95;hpb=43e0d132ca1f82908f0d1f05976b75e3125fc486;p=fio.git diff --git a/engines/e4defrag.c b/engines/e4defrag.c index 3599ab8a..c0667fec 100644 --- a/engines/e4defrag.c +++ b/engines/e4defrag.c @@ -17,6 +17,7 @@ #include #include "../fio.h" +#include "../optgroup.h" #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 thread_data *td; + void *pad; unsigned int inplace; char * donor_name; }; @@ -98,8 +99,8 @@ static int fio_e4defrag_init(struct thread_data *td) } 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; }