]> git.baikalelectronics.ru Git - kernel.git/commit
block: shrink rq_map_data a bit
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Aug 2022 22:39:04 +0000 (16:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Aug 2022 16:07:56 +0000 (10:07 -0600)
commitf5d632d15e9e0a037339601680d82bb840f85d10
tree9b13ba0fcdf8da7c7fdd6a93e072517cd79d5b6e
parentd322f355e9368045ff89b7a3df9324fe0c33839b
block: shrink rq_map_data a bit

We don't need full ints for several of these members. Change the
page_order and nr_entries to unsigned shorts, and the true/false from_user
and null_mapped to booleans.

This shrinks the struct from 32 to 24 bytes on 64-bit archs.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c
include/linux/blk-mq.h