[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/mm: Properly account for paged out pages
# HG changeset patch # User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx> # Date 1327584087 0 # Node ID 7a28b8b2d3ea01bb7c1a9e50b0af3c1709e36f2d # Parent cdceeb86ae08a03553a68bf4729ae9db38cbe821 x86/mm: Properly account for paged out pages 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> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Tim Deegan <tim@xxxxxxx> --- diff -r cdceeb86ae08 -r 7a28b8b2d3ea xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Thu Jan 26 13:21:27 2012 +0000 +++ b/xen/arch/x86/mm/p2m.c Thu Jan 26 13:21:27 2012 +0000 @@ -1041,7 +1041,8 @@ 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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |