diff options
author | John Garry <john.garry@huawei.com> | 2017-06-14 23:33:12 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-19 21:31:25 -0400 |
commit | ad6048325c7807818c6c49e485660143d97a622e (patch) | |
tree | 66d6f2769e8ff58fde2b98af67fd12d06df5ca8b /mm/page_vma_mapped.c | |
parent | f64a6988268aae866bb6ce6edb910d454ccef331 (diff) |
scsi: hisi_sas: define hisi_sas_device.device_id as int
Currently hisi_sas_device.device_id is a u64. This can create a problem
in selecting the queue for a device, in that this code does a 64b
division on device id. For some 32b systems, 64b division is slow and
the lib reference must be explicitly included.
The device id does not need to be 64b in size, so, as a solution, just
make as an int.
Also, struct hisi_sas_device elements are re-ordered to improve packing
efficiency.
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'mm/page_vma_mapped.c')
0 files changed, 0 insertions, 0 deletions