linux-stable/drivers/block/null_blk
Yu Kuai 8ba816b23a 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>
2022-04-25 20:31:20 -06:00
..
Kconfig null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
main.c block: remove QUEUE_FLAG_DISCARD 2022-04-17 19:49:59 -06:00
Makefile null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
null_blk.h null-blk: save memory footprint for struct nullb_cmd 2022-04-25 20:31:20 -06:00
trace.c null_blk: Move driver into its own directory 2020-12-07 17:36:04 -07:00
trace.h block: remove the ->rq_disk field in struct request 2021-11-29 06:41:29 -07:00
zoned.c drivers/block/null_blk/main: Fix a double free in null_init. 2021-04-26 09:04:40 -06:00