[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 6 of 8] x86/mm: Properly account for paged out pages
xen/arch/x86/mm/p2m.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) If we hit the page after nominate but before paging it out, don't decrement the domain count of paged out pages. Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> diff -r c41436e555cd -r d4336e35f0bc xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -1041,7 +1041,8 @@ int p2m_mem_paging_prep(struct domain *d p2m_ram_rw, a); set_gpfn_from_mfn(mfn_x(mfn), gfn); - atomic_dec(&d->paged_pages); + if ( !page_extant ) + atomic_dec(&d->paged_pages); ret = 0; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |