OSDN Git Service

block: re-organize fields of 'struct hd_part'
authorMing Lei <ming.lei@redhat.com>
Fri, 8 May 2020 08:17:57 +0000 (16:17 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 May 2020 02:31:39 +0000 (20:31 -0600)
commit520138c3b9425c615d1417687947d86821003319
treee02efdb939842d33ab3df422f24c0a30e4fbbe99
parent07c4e1e834f8e7c991aa6dcb5ee0b7f2842e495d
block: re-organize fields of 'struct hd_part'

Put all fields accessed in IO path together at the beginning
of the struct, so that all can be fetched in single cacheline.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Cc: Yufen Yu <yuyufen@huawei.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hou Tao <houtao1@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/genhd.h