summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-06-09 14:00:35 (GMT)
committerJens Axboe <axboe@fb.com>2016-06-09 15:52:09 (GMT)
commitca93e45347e61cd85e5d71961f6c94fad143593d (patch)
tree3442c134a3df80889ab50b7ff6e782e29c557ff3 /include
parent60a40096a3b289c28429221c12a5a6890350d919 (diff)
downloadlinux-ca93e45347e61cd85e5d71961f6c94fad143593d.tar.xz
block: better packing for struct request
Keep the 32-bit CPU and cmd_type flags together to avoid holes on 64-bit architectures. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 0c9f879..9746d22 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -96,12 +96,11 @@ struct request {
struct request_queue *q;
struct blk_mq_ctx *mq_ctx;
- u64 cmd_flags;
+ int cpu;
unsigned cmd_type;
+ u64 cmd_flags;
unsigned long atomic_flags;
- int cpu;
-
/* the following two fields are internal, NEVER access directly */
unsigned int __data_len; /* total data len */
sector_t __sector; /* sector cursor */