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>
Sun, 7 Aug 2022 15:00:48 +0000 (09:00 -0600)
commitf65a6362bd29bf794bf05fc4f75dd8dff1017757
tree6628292f28d794b1182bbc9c635e03df8ded30e2
parent74cae210a335d159f2eb822e261adee905b6951a
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