Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299401
b: refs/heads/master
c: 3d81acb
h: refs/heads/master
i:
  299399: 58a4e3f
v: v3
  • Loading branch information
Konrad Rzeszutek Wilk committed Apr 20, 2012
1 parent 174c2a4 commit e779561
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 186bab1ce04f99153b7eeb3348438b654c24c24b
refs/heads/master: 3d81acb1cdb242378a1acb3eb1bc28c6bb5895f1
8 changes: 6 additions & 2 deletions trunk/arch/x86/xen/p2m.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,17 +809,21 @@ struct page *m2p_find_override(unsigned long mfn)
{
unsigned long flags;
struct list_head *bucket = &m2p_overrides[mfn_hash(mfn)];
struct page *p, *t, *ret;
struct page *p, *ret;

ret = NULL;

list_for_each_entry_safe(p, t, bucket, lru) {
spin_lock_irqsave(&m2p_override_lock, flags);

list_for_each_entry(p, bucket, lru) {
if (page_private(p) == mfn) {
ret = p;
break;
}
}

spin_unlock_irqrestore(&m2p_override_lock, flags);

return ret;
}

Expand Down

0 comments on commit e779561

Please sign in to comment.