提交 ca93e453 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 60a40096
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册