To print balloon stats in case of OOM and sysrq we need to have
this stats in the mm core.
1. Add stats for balloon memory in core.
2. Propagate changes from drivers.
3. Print balloon stats in show_mem which is used on OOM and sysrq.
Alexander Atanasov (4):
Enable balloon drivers to report infla
Propagate balloon stats to mm core.
https://jira.sw.ru/browse/PSBM-142436
Signed-off-by: Alexander Atanasov
---
drivers/virtio/virtio_balloon.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index e8cefeea4f22..8c2a03e2b
Propagate balloon stats to mm core.
https://jira.sw.ru/browse/PSBM-142436
Signed-off-by: Alexander Atanasov
---
drivers/hv/hv_balloon.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index 9bf30659a975..5faf5bfd62b1 100644
--- a
Add counters to be updated by the balloon drivers.
Print balloon stats when logging kernel memory usage.
https://jira.sw.ru/browse/PSBM-142436
Signed-off-by: Alexander Atanasov
---
include/linux/balloon_compaction.h | 7 +++
lib/show_mem.c | 8
mm/balloon_comp
Propagate balloon stats to mm core.
https://jira.sw.ru/browse/PSBM-142436
Signed-off-by: Alexander Atanasov
---
drivers/misc/vmw_balloon.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c
index 981f47f400ae..5bb579c