]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
src: Bump MAX_MNT_ELEMENTS for new 'dmem' controller
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 13 Jun 2025 12:38:36 +0000 (18:08 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 16 Jun 2025 13:48:20 +0000 (07:48 -0600)
Upstream commit b168ed458ddec ("kernel/cgroup: Add 'dmem' memory
accounting cgroup") adds a new controller. Update MAX_MNT_ELEMENTS
to match the increased number of cgroup controllers.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit 328387f411cd793acb48aa990d6e72c9feb46713)

src/libcgroup-internal.h

index bb5c2213dd6e4b580f38b4495ad19d257adf9254..f99556b0ff838ce86b532b85674350ad3af3875c 100644 (file)
@@ -27,7 +27,7 @@ extern "C" {
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#define MAX_MNT_ELEMENTS       16      /* Maximum number of mount points/controllers */
+#define MAX_MNT_ELEMENTS       17      /* Maximum number of mount points/controllers */
 #define MAX_GROUP_ELEMENTS     128     /* Estimated number of groups created */
 
 #define CG_CONTROL_VALUE_MAX   4096    /* Maximum length of a value */