aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-02-15 08:39:49 -0700
committerJens Axboe <axboe@kernel.dk>2024-02-15 08:39:49 -0700
commit1a41b353a54a7ec2ebab5f66bbf25747f963f79f (patch)
tree6dfdfac8fdd35cdef033f0cfb46abfd6cd87e228
parent5d4ee0de9d6afaa74c7c15c3d4f210a06d4e2139 (diff)
downloadfio-1a41b353a54a7ec2ebab5f66bbf25747f963f79f.tar.gz
io_u: move number_trim to reclaim 8 bytes in struct io_u
Move it under clat_prio_index, which already has a 6 byte gap. This saves 8 bytes total in struct io_u, which is always nice. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_u.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/io_u.h b/io_u.h
index cfacf310e..ab93d50f9 100644
--- a/io_u.h
+++ b/io_u.h
@@ -53,6 +53,11 @@ struct io_u {
unsigned short clat_prio_index;
/*
+ * number of trim ranges for this IO.
+ */
+ unsigned int number_trim;
+
+ /*
* Allocated/set buffer and length
*/
unsigned long long buflen;
@@ -80,10 +85,6 @@ struct io_u {
struct io_piece *ipo;
- /*
- * number of trim ranges for this IO.
- */
- unsigned int number_trim;
unsigned long long resid;
unsigned int error;