Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252967
b: refs/heads/master
c: 1c9fc3d
h: refs/heads/master
i:
  252965: 207fecc
  252963: 6a7d3cc
  252959: 20b4ef6
v: v3
  • Loading branch information
Chris Wright authored and David Woodhouse committed Jun 1, 2011
1 parent 0e9dbf1 commit 7f75740
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb452a4040bb051d92e85d6e7eb60c11734c1781
refs/heads/master: 1c9fc3d11b84fbd0c4f4aa7855702c2a1f098ebb
12 changes: 10 additions & 2 deletions trunk/drivers/pci/iova.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@ __cached_rbnode_delete_update(struct iova_domain *iovad, struct iova *free)
curr = iovad->cached32_node;
cached_iova = container_of(curr, struct iova, node);

if (free->pfn_lo >= cached_iova->pfn_lo)
iovad->cached32_node = rb_next(&free->node);
if (free->pfn_lo >= cached_iova->pfn_lo) {
struct rb_node *node = rb_next(&free->node);
struct iova *iova = container_of(node, struct iova, node);

/* only cache if it's below 32bit pfn */
if (node && iova->pfn_lo < iovad->dma_32bit_pfn)
iovad->cached32_node = node;
else
iovad->cached32_node = NULL;
}
}

/* Computes the padding size required, to make the
Expand Down

0 comments on commit 7f75740

Please sign in to comment.