Commit c067ad11 authored by Wanpeng Li's avatar Wanpeng Li Committed by Greg Kroah-Hartman

staging: ramster: decrease foregin pers pages when count < 0

commit 9a5c5968 ("staging: ramster: Provide accessory functions for
counter decrease") forget decrease foregin pers pages, this patch fix
it.
Acked-by: default avatarDan Magenheimer <dan.magenheimer@oracle.com>
Signed-off-by: default avatarWanpeng Li <liwanp@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c400c1e1
......@@ -508,6 +508,7 @@ void ramster_count_foreign_pages(bool eph, int count)
if (count > 0) {
inc_ramster_foreign_pers_pages();
} else {
dec_ramster_foreign_pers_pages();
WARN_ON_ONCE(ramster_foreign_pers_pages < 0);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment