Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
#ifndef FIO_FILE_H
#define FIO_FILE_H
#ifndef FIO_FILE_H
#define FIO_FILE_H
#include "compiler/compiler.h"
#include "io_ddir.h"
#include "flist.h"
#include "compiler/compiler.h"
#include "io_ddir.h"
#include "flist.h"
#include <sys/devinfo.h>
#include <sys/ioctl.h>
#include <sys/devinfo.h>
#include <sys/ioctl.h>
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_USE_GENERIC_RAND
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_USE_GENERIC_RAND
#include <sys/sysctl.h>
#include <sys/disk.h>
#include <sys/sysctl.h>
#include <sys/disk.h>
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_HAVE_IOPRIO
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_ODIRECT
#define FIO_HAVE_IOPRIO
#include "indirect.h"
#include "binject.h"
#include "indirect.h"
#include "binject.h"
#define FIO_HAVE_LIBAIO
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_LIBAIO
#define FIO_HAVE_POSIXAIO
#define BLKDISCARD _IO(0x12,119)
#endif
#define BLKDISCARD _IO(0x12,119)
#endif
-static inline int blockdev_invalidate_cache(struct fio_file *fd)
+static inline int blockdev_invalidate_cache(struct fio_file *f)
{
return ioctl(f->fd, BLKFLSBUF);
}
{
return ioctl(f->fd, BLKFLSBUF);
}
#include <errno.h>
#include <sys/sysctl.h>
#include <errno.h>
#include <sys/sysctl.h>
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
#endif
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC 1
#endif
#undef rb_left
#undef rb_right
#undef rb_left
#undef rb_right
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_FADVISE
#define FIO_HAVE_ODIRECT
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_FADVISE
#define FIO_HAVE_ODIRECT
#include <sys/fcntl.h>
#include <sys/pset.h>
#include <sys/fcntl.h>
#include <sys/pset.h>
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_SOLARISAIO
#define FIO_HAVE_FALLOCATE
#define FIO_HAVE_POSIXAIO
#define FIO_HAVE_SOLARISAIO
#define FIO_HAVE_FALLOCATE