diff options
| author | Klaus Jensen <k.jensen@samsung.com> | 2021-04-14 21:34:44 +0200 |
|---|---|---|
| committer | Klaus Jensen <k.jensen@samsung.com> | 2021-05-17 09:18:59 +0200 |
| commit | 6146f3dd35cd71b4ac594b2e4a86c4bb3af52b09 (patch) | |
| tree | fdd23c3808b8955e71db54c6d66b7f6446ec548e /tests/qapi-schema/test-qapi.py | |
| parent | 0c76fee2f8e3332b8d7db89da13e4edfdcc5a4f0 (diff) | |
| download | focaccia-qemu-6146f3dd35cd71b4ac594b2e4a86c4bb3af52b09.tar.gz focaccia-qemu-6146f3dd35cd71b4ac594b2e4a86c4bb3af52b09.zip | |
hw/block/nvme: cache lba and ms sizes
There is no need to look up the lba size and metadata size in the LBA Format structure everytime we want to use it. And we use it a lot. Cache the values in the NvmeNamespace and update them if the namespace is formatted. Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tests/qapi-schema/test-qapi.py')
0 files changed, 0 insertions, 0 deletions