diff options
| author | Jon Nettleton <[email protected]> | 2017-08-03 02:31:01 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-08-13 15:17:32 -0400 |
| commit | f81d83d53454a108f0317c1debd8af7edc8413be (patch) | |
| tree | de56fd14eebea8131a2f53a6b73e528f127f9ebf /include/linux/kernel.h | |
| parent | 0deb91318b15f0d12839b23433e2720722504d25 (diff) | |
nvme: Fix number of blocks detection
NVMe should use the nsze value from the queried device. This will
reflect the total number of blocks of the device and fix detecting
my Samsung 960 EVO 256GB.
Original:
Capacity: 40386.6 MB = 39.4 GB (82711872 x 512)
Fixed:
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Signed-off-by: Jon Nettleton <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions
