mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.7.3.35 (3e01c69fVEIt6jkFKyIwKxgETc0PNw)
debug
This commit is contained in:
1 parent
1bb4072b66
commit
b179fb4103
1 file changed
+6
@@ -336,6 +336,8 @@ int direct_disc_unmap(unsigned long from, unsigned long first_pg, int tot_pages)
|
||||
struct list_head * curr;
|
||||
struct list_head * direct_list = ¤t->mm->context.direct_list;
|
||||
|
||||
printk(KERN_ALERT "bd240 debug: direct_disc_unmap\n");
|
||||
|
||||
curr = direct_list->next;
|
||||
while(curr != direct_list){
|
||||
node = list_entry(curr, direct_mmap_node_t, list);
|
||||
@@ -348,9 +350,13 @@ int direct_disc_unmap(unsigned long from, unsigned long first_pg, int tot_pages)
|
||||
if(curr == direct_list)
|
||||
return -1;
|
||||
|
||||
printk(KERN_ALERT "bd240 debug: direct_disc_unmap, deleted from direct_list\n");
|
||||
|
||||
list_del(&node->list);
|
||||
kfree(node);
|
||||
|
||||
printk(KERN_ALERT "bd240 debug: direct_disc_unmap, from %lx, tot_pages %lx\n", from, tot_pages);
|
||||
|
||||
while(count < tot_pages){
|
||||
direct_zap_page_range(current->mm, from, PAGE_SIZE);
|
||||
from += PAGE_SIZE;
|
||||
|
||||