From: Lukas Straub Date: Wed, 19 Jan 2022 21:14:20 +0000 (+0000) Subject: iolog.c: Make iolog_items_to_fetch public X-Git-Tag: fio-3.30~92 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a21ed2b50116e96f5f2d9c0dcf2e3506d7397ef8;p=fio.git iolog.c: Make iolog_items_to_fetch public This function be needed in the next patch. Signed-off-by: Lukas Straub Link: https://lore.kernel.org/r/81c9fbb31bbf0c487dc0ebff5eb85ca764fb14ef.1642626314.git.lukasstraub2@web.de Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 1aeb7a76..3d4646a8 100644 --- a/iolog.c +++ b/iolog.c @@ -355,7 +355,7 @@ void write_iolog_close(struct thread_data *td) td->iolog_buf = NULL; } -static int64_t iolog_items_to_fetch(struct thread_data *td) +int64_t iolog_items_to_fetch(struct thread_data *td) { struct timespec now; uint64_t elapsed; diff --git a/iolog.h b/iolog.h index 7d66b7c4..a3986309 100644 --- a/iolog.h +++ b/iolog.h @@ -254,6 +254,7 @@ extern void trim_io_piece(const struct io_u *); extern void queue_io_piece(struct thread_data *, struct io_piece *); extern void prune_io_piece_log(struct thread_data *); extern void write_iolog_close(struct thread_data *); +int64_t iolog_items_to_fetch(struct thread_data *td); extern int iolog_compress_init(struct thread_data *, struct sk_out *); extern void iolog_compress_exit(struct thread_data *); extern size_t log_chunk_sizes(struct io_log *);