[Devel] [PATCH vz9 3/4] drivers: vmware: balloon report stats to mm core
Alexander Atanasov
alexander.atanasov at virtuozzo.com
Mon Oct 17 14:52:53 MSK 2022
Propagate balloon stats to mm core.
https://jira.sw.ru/browse/PSBM-142436
Signed-off-by: Alexander Atanasov <alexander.atanasov at virtuozzo.com>
---
drivers/misc/vmw_balloon.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index f1d8ba6d4857..6e62fee0bfbe 100644
--- a/drivers/misc/vmw_balloon.c
+++ b/drivers/misc/vmw_balloon.c
@@ -1501,6 +1501,8 @@ static void vmballoon_work(struct work_struct *work)
}
up_read(&b->conf_sem);
+ if (change != 0)
+ balloon_set_inflated_free(atomic64_read(&b->size) << 2);
/*
* We are using a freezable workqueue so that balloon operations are
--
2.31.1
More information about the Devel
mailing list