diff options
author | Joao Martins <[email protected]> | 2024-06-27 12:01:01 +0100 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-06-28 13:12:23 -0300 |
commit | a84c690e10ae03f1cddec908ac7f5068ceed67a8 (patch) | |
tree | 59f5d2c0f0d1b137c1b6bd1b5052574d52b1dc60 /lib/memory-notifier-error-inject.c | |
parent | 792583656f554e35383d6b2325371c8fe056a56b (diff) |
iommufd/iova_bitmap: Cache mapped length in iova_bitmap_map struct
The amount of IOVA mapped will be used more often in iova_bitmap_set() in
preparation to dynamically iterate the bitmap. Cache said length to avoid
having to calculate it all the time.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joao Martins <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Tested-by: Matt Ochs <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions