Recent changes (master)

Jens Axboe <[email protected]> Tue, 1 Jul 2025 06:00:01 -0600 (MDT)
Newsgroups org.kernel.vger.fio
Message-ID <[email protected]>
The following changes since commit 7037b833e175aae32900b73bf597aad08c1d8472:

  windows: drop nanosleep and clock_gettime (2025-06-23 15:04:34 -0400)

are available in the Git repository at:

  git://git.kernel.dk/fio.git master

for you to fetch changes up to 5db7e6b26bd07824c6207dcbac1a8e7a95a3f20c:

  Merge branch 'fix-randtrimwrite' of https://github.com/minwooim/fio (2025-06-30 07:42:00 -0600)

----------------------------------------------------------------
Jens Axboe (1):
      Merge branch 'fix-randtrimwrite' of https://github.com/minwooim/fio

Jungwon Lee (1):
      io_u: fix offset calculation in randtrimwrite

 io_u.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

Diff of recent changes:

diff --git a/io_u.c b/io_u.c
index 70a11837..360bd774 100644
--- a/io_u.c
+++ b/io_u.c
@@ -431,7 +431,7 @@ static int get_next_block(struct thread_data *td, struct io_u *io_u,
 	if (td_randtrimwrite(td) && ddir == DDIR_WRITE) {
 		/* don't mark randommap for these writes */
 		io_u_set(td, io_u, IO_U_F_BUSY_OK);
-		offset = f->last_start[DDIR_TRIM];
+		offset = f->last_start[DDIR_TRIM] - f->file_offset;
 		*is_random = true;
 		ret = 0;
 	} else if (rw_seq) {