diff options
author | Fenghua Yu <[email protected]> | 2009-08-04 15:09:37 -0700 |
---|---|---|
committer | David Woodhouse <[email protected]> | 2009-08-05 08:59:47 +0100 |
commit | f532959b77e5e567c84c914cb7c7b07d2582448b (patch) | |
tree | 268d0bf9e6660a8fdecc8dcda446745c8464f53a /net/unix/af_unix.c | |
parent | 90bc1a658a53f8832ee799685703977a450e5af9 (diff) |
intel-iommu: Correct sglist size calculation.
In domain_sg_mapping(), use aligned_nrpages() instead of hand-coded
rounding code for calculating the size of each sg elem. This means that
on IA64 we correctly round up to the MM page size, not just to the VT-d
page size.
Also remove the incorrect mm_to_dma_pfn() when intel_map_sg() calls
domain_sg_mapping() -- the 'size' variable is in VT-d pages already.
Signed-off-by: Fenghua Yu <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions