]> xenbits.xensource.com Git - xen.git/commit
x86/mem_sharing: Fix saved mfns stat for failed unsharing
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 26 Apr 2012 09:03:08 +0000 (10:03 +0100)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 26 Apr 2012 09:03:08 +0000 (10:03 +0100)
commit77ece196fa5d0ee037cea3b8755e94b42aac4ec0
tree9ced74e388beaa7a84abe366a82c75e512428ff2
parent362cb954a355ba0bf0e619b80cc460b9412994ef
x86/mem_sharing: Fix saved mfns stat for failed unsharing

If unsharing fails, the decrease of the nr_saved_mfns stat was not being
undone. This would result in an underflow of the stat, as the retry would later
decrease the counter again.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mem_sharing.c