Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215759
b: refs/heads/master
c: 45bf21a
h: refs/heads/master
i:
  215757: 9eb3fe5
  215755: a2a38cd
  215751: 7ece299
  215743: 9b782c4
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Oct 24, 2010
1 parent e542fed commit 607a9ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 80b63faf028fba79e630d3643b0e615bddf4067b
refs/heads/master: 45bf21a8ce7a2884f067a702a5c7683684846ce1
5 changes: 4 additions & 1 deletion trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,7 @@ static void mmu_destroy_caches(void)
void kvm_mmu_module_exit(void)
{
mmu_destroy_caches();
percpu_counter_destroy(&kvm_total_used_mmu_pages);
unregister_shrinker(&mmu_shrinker);
}

Expand All @@ -3207,7 +3208,9 @@ int kvm_mmu_module_init(void)
if (!mmu_page_header_cache)
goto nomem;

percpu_counter_init(&kvm_total_used_mmu_pages, 0);
if (percpu_counter_init(&kvm_total_used_mmu_pages, 0))
goto nomem;

register_shrinker(&mmu_shrinker);

return 0;
Expand Down

0 comments on commit 607a9ca

Please sign in to comment.