diff options
author | 2019-10-21 12:40:04 +0900 | |
---|---|---|
committer | 2019-11-04 10:56:41 -0700 | |
commit | e08f2ae850929d40e66268ee47e443e7ea56eeb7 (patch) | |
tree | fa7600498204fb0c479510dcfd3d084c1fc5b868 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nvme: Cleanup and rename nvme_block_nr() (diff) | |
download | linux-dev-e08f2ae850929d40e66268ee47e443e7ea56eeb7.tar.xz linux-dev-e08f2ae850929d40e66268ee47e443e7ea56eeb7.zip |
nvme: Introduce nvme_lba_to_sect()
Introduce the new helper function nvme_lba_to_sect() to convert a device
logical block number to a 512B sector number. Use this new helper in
obvious places, cleaning up the code.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions