io_u: move number_trim to reclaim 8 bytes in struct io_u
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Feb 2024 15:39:49 +0000 (08:39 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Feb 2024 15:39:49 +0000 (08:39 -0700)
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>
io_u.h

diff --git a/io_u.h b/io_u.h
index cfacf310e1cd7e21f4925b8da028b25c24f50ca2..ab93d50f967e78547961e7650b2921f53f64f6b9 100644 (file)
--- a/io_u.h
+++ b/io_u.h
@@ -52,6 +52,11 @@ struct io_u {
        unsigned short ioprio;
        unsigned short clat_prio_index;
 
+       /*
+        * number of trim ranges for this IO.
+        */
+       unsigned int number_trim;
+
        /*
         * Allocated/set buffer and length
         */
@@ -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;