Skip to content

Commit

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

ret = NULL;

spin_lock_irqsave(&m2p_override_lock, flags);

list_for_each_entry(p, bucket, lru) {
list_for_each_entry_safe(p, t, 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 fa8bb3c

Please sign in to comment.