Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: rename balloon_compaction.(c|h) to balloon.(c|h)

Even without CONFIG_BALLOON_COMPACTION this infrastructure implements
basic list and page management for a memory balloon.

Link: https://lkml.kernel.org/r/20260119230133.3551867-21-david@kernel.org
Signed-off-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Eugenio Pérez <eperezma@redhat.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Jerrin Shaji George <jerrin.shaji-george@broadcom.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: SeongJae Park <sj@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand (Red Hat) and committed by
Andrew Morton
25b48b4c a3db9e13

+15 -17
+1 -1
Documentation/core-api/mm-api.rst
··· 130 130 .. kernel-doc:: mm/vmscan.c 131 131 .. kernel-doc:: mm/memory_hotplug.c 132 132 .. kernel-doc:: mm/mmu_notifier.c 133 - .. kernel-doc:: mm/balloon_compaction.c 133 + .. kernel-doc:: mm/balloon.c 134 134 .. kernel-doc:: mm/huge_memory.c
+2 -2
MAINTAINERS
··· 27546 27546 L: virtualization@lists.linux.dev 27547 27547 S: Maintained 27548 27548 F: drivers/virtio/virtio_balloon.c 27549 - F: include/linux/balloon_compaction.h 27549 + F: include/linux/balloon.h 27550 27550 F: include/uapi/linux/virtio_balloon.h 27551 - F: mm/balloon_compaction.c 27551 + F: mm/balloon.c 27552 27552 27553 27553 VIRTIO BLOCK AND SCSI DRIVERS 27554 27554 M: "Michael S. Tsirkin" <mst@redhat.com>
+1 -1
arch/powerpc/platforms/pseries/cmm.c
··· 19 19 #include <linux/stringify.h> 20 20 #include <linux/swap.h> 21 21 #include <linux/device.h> 22 - #include <linux/balloon_compaction.h> 22 + #include <linux/balloon.h> 23 23 #include <asm/firmware.h> 24 24 #include <asm/hvcall.h> 25 25 #include <asm/mmu.h>
+1 -1
drivers/misc/vmw_balloon.c
··· 29 29 #include <linux/rwsem.h> 30 30 #include <linux/slab.h> 31 31 #include <linux/spinlock.h> 32 - #include <linux/balloon_compaction.h> 32 + #include <linux/balloon.h> 33 33 #include <linux/vmw_vmci_defs.h> 34 34 #include <linux/vmw_vmci_api.h> 35 35 #include <asm/hypervisor.h>
+1 -1
drivers/virtio/virtio_balloon.c
··· 13 13 #include <linux/delay.h> 14 14 #include <linux/slab.h> 15 15 #include <linux/module.h> 16 - #include <linux/balloon_compaction.h> 16 + #include <linux/balloon.h> 17 17 #include <linux/oom.h> 18 18 #include <linux/wait.h> 19 19 #include <linux/mm.h>
+5 -6
include/linux/balloon_compaction.h include/linux/balloon.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 /* 3 - * include/linux/balloon_compaction.h 4 - * 5 - * Common interface definitions for making balloon pages movable by compaction. 3 + * Common interface for implementing a memory balloon, including support 4 + * for migration of pages inflated in a memory balloon. 6 5 * 7 6 * Balloon page migration makes use of the general "movable_ops page migration" 8 7 * feature. ··· 34 35 * 35 36 * Copyright (C) 2012, Red Hat, Inc. Rafael Aquini <aquini@redhat.com> 36 37 */ 37 - #ifndef _LINUX_BALLOON_COMPACTION_H 38 - #define _LINUX_BALLOON_COMPACTION_H 38 + #ifndef _LINUX_BALLOON_H 39 + #define _LINUX_BALLOON_H 39 40 #include <linux/pagemap.h> 40 41 #include <linux/page-flags.h> 41 42 #include <linux/migrate.h> ··· 74 75 balloon->migratepage = NULL; 75 76 balloon->adjust_managed_page_count = false; 76 77 } 77 - #endif /* _LINUX_BALLOON_COMPACTION_H */ 78 + #endif /* _LINUX_BALLOON_H */
+1 -1
mm/Makefile
··· 122 122 obj-$(CONFIG_NUMA) += numa.o 123 123 obj-$(CONFIG_NUMA_MEMBLKS) += numa_memblks.o 124 124 obj-$(CONFIG_NUMA_EMU) += numa_emulation.o 125 - obj-$(CONFIG_MEMORY_BALLOON) += balloon_compaction.o 125 + obj-$(CONFIG_MEMORY_BALLOON) += balloon.o 126 126 obj-$(CONFIG_PAGE_EXTENSION) += page_ext.o 127 127 obj-$(CONFIG_PAGE_TABLE_CHECK) += page_table_check.o 128 128 obj-$(CONFIG_CMA_DEBUGFS) += cma_debug.o
+3 -4
mm/balloon_compaction.c mm/balloon.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 /* 3 - * mm/balloon_compaction.c 4 - * 5 - * Common interface for making balloon pages movable by compaction. 3 + * Common interface for implementing a memory balloon, including support 4 + * for migration of pages inflated in a memory balloon. 6 5 * 7 6 * Copyright (C) 2012, Red Hat, Inc. Rafael Aquini <aquini@redhat.com> 8 7 */ 9 8 #include <linux/mm.h> 10 9 #include <linux/slab.h> 11 10 #include <linux/export.h> 12 - #include <linux/balloon_compaction.h> 11 + #include <linux/balloon.h> 13 12 14 13 /* 15 14 * Lock protecting the balloon_dev_info of all devices. We don't really