summaryrefslogtreecommitdiff
path: root/drivers/block/z2ram.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-04-26 05:21:33 +0300
committerJens Axboe <axboe@kernel.dk>2022-04-26 05:31:20 +0300
commit8ba816b23abd2a9a05705f3d00b8653f8be73015 (patch)
treec98b1136d919cf557596022061c32920b39371cf /drivers/block/z2ram.c
parent5ea7c1339e3ed094dd4df48d598f9018a2587283 (diff)
downloadlinux-8ba816b23abd2a9a05705f3d00b8653f8be73015.tar.xz
null-blk: save memory footprint for struct nullb_cmd
Total 16 bytes can be saved in two ways: 1) The field 'bio' will only be used in bio based mode, and the field 'rq' will only be used in mq mode. Since they won't be used in the same time, declare a union for them. 2) The field 'bool fake_timeout' can be placed in the hole after the field 'error'. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Link: https://lore.kernel.org/r/20220426022133.3999006-1-yukuai3@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/z2ram.c')
0 files changed, 0 insertions, 0 deletions