diff options
author | Damien Le Moal <[email protected]> | 2019-10-21 12:40:04 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-11-04 10:56:41 -0700 |
commit | e08f2ae850929d40e66268ee47e443e7ea56eeb7 (patch) | |
tree | fa7600498204fb0c479510dcfd3d084c1fc5b868 /net/switchdev/switchdev.c | |
parent | 314d48dd224897e35ddcaf5a1d7d133b5adddeb7 (diff) |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions