summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-03-09 10:22:01 -0700
committerJens Axboe <axboe@kernel.dk>2018-03-09 10:22:01 -0700
commite8fb335e4a704786d9cd82224db187019000abef (patch)
treef4ba10e67426d39f51babe968f41033ec66d9178 /io_u.c
parent0eeedaebebd3d733f6dfcd6438f553f27281495a (diff)
downloadfio-e8fb335e4a704786d9cd82224db187019000abef.tar.gz
fio-e8fb335e4a704786d9cd82224db187019000abef.tar.bz2
io_u: kill get_next_{offset,buflen} wrappers
After the previous commit, they are just wrappers. Kill them. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/io_u.c b/io_u.c
index 2ae05317..89eacd3b 100644
--- a/io_u.c
+++ b/io_u.c
@@ -537,8 +537,8 @@ static int get_next_block(struct thread_data *td, struct io_u *io_u,
* until we find a free one. For sequential io, just return the end of
* the last io issued.
*/
-static int __get_next_offset(struct thread_data *td, struct io_u *io_u,
- unsigned int *is_random)
+static int get_next_offset(struct thread_data *td, struct io_u *io_u,
+ unsigned int *is_random)
{
struct fio_file *f = io_u->file;
enum fio_ddir ddir = io_u->ddir;
@@ -572,12 +572,6 @@ static int __get_next_offset(struct thread_data *td, struct io_u *io_u,
return 0;
}
-static int get_next_offset(struct thread_data *td, struct io_u *io_u,
- unsigned int *is_random)
-{
- return __get_next_offset(td, io_u, is_random);
-}
-
static inline bool io_u_fits(struct thread_data *td, struct io_u *io_u,
unsigned int buflen)
{
@@ -586,8 +580,8 @@ static inline bool io_u_fits(struct thread_data *td, struct io_u *io_u,
return io_u->offset + buflen <= f->io_size + get_start_offset(td, f);
}
-static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u,
- unsigned int is_random)
+static unsigned int get_next_buflen(struct thread_data *td, struct io_u *io_u,
+ unsigned int is_random)
{
int ddir = io_u->ddir;
unsigned int buflen = 0;
@@ -648,12 +642,6 @@ static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u,
return buflen;
}
-static unsigned int get_next_buflen(struct thread_data *td, struct io_u *io_u,
- unsigned int is_random)
-{
- return __get_next_buflen(td, io_u, is_random);
-}
-
static void set_rwmix_bytes(struct thread_data *td)
{
unsigned int diff;