summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-12-12 08:34:42 +0100
committerJens Axboe <axboe@kernel.dk>2012-12-12 08:34:42 +0100
commitef5f5a3a63f8b7c472f30484c520265aba6ef162 (patch)
treec19c000addbf1012b12daa3e147484c925a7a15a /file.h
parente6c4d732fc99070091367d0ce41fe2cf1ddd1dc9 (diff)
downloadfio-ef5f5a3a63f8b7c472f30484c520265aba6ef162.tar.gz
fio-ef5f5a3a63f8b7c472f30484c520265aba6ef162.tar.bz2
file: unify ->file_data and ->file_pos
The only real use case of ->file_pos was by the sync engine to avoid an lseek() if the offset was already correct. The e4defrag, falloc, and fusion-aw engine also set ->file_pos, but that looks like a case of copy-paste, since they don't actually use it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'file.h')
-rw-r--r--file.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/file.h b/file.h
index 11695e2f..e57bebcf 100644
--- a/file.h
+++ b/file.h
@@ -63,7 +63,6 @@ struct fio_file {
struct flist_head hash_list;
enum fio_filetype filetype;
- void *file_data;
int fd;
int shadow_fd;
#ifdef WIN32
@@ -98,7 +97,7 @@ struct fio_file {
/*
* For use by the io engine
*/
- unsigned long long file_pos;
+ uint64_t engine_data;
/*
* if io is protected by a semaphore, this is set
@@ -181,7 +180,6 @@ static inline void fio_file_reset(struct fio_file *f)
{
f->last_pos = f->file_offset;
f->last_start = -1ULL;
- f->file_pos = -1ULL;
if (f->io_axmap)
axmap_reset(f->io_axmap);
}