From 1a41b353a54a7ec2ebab5f66bbf25747f963f79f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 15 Feb 2024 08:39:49 -0700 Subject: [PATCH] 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 --- io_u.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/io_u.h b/io_u.h index cfacf310..ab93d50f 100644 --- 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; -- 2.25.1