Skip to content

Commit ee71a72

Browse files
Chen Ridongopsiff
authored andcommitted
deepin: KABI: KABI reservation for cgroup structures
kabi: reserve space for cgroup frame Link: https://gitee.com/openeuler/kernel/issues/I8SA3O Signed-off-by: Chen Ridong <[email protected]> Signed-off-by: Wentao Guan <[email protected]>
1 parent a5331bd commit ee71a72

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

include/linux/cgroup-defs.h

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <linux/workqueue.h>
2222
#include <linux/bpf-cgroup-defs.h>
2323
#include <linux/psi_types.h>
24+
#include <linux/deepin_kabi.h>
2425

2526
#ifdef CONFIG_CGROUPS
2627

@@ -143,6 +144,10 @@ struct cgroup_file {
143144
struct kernfs_node *kn;
144145
unsigned long notified_at;
145146
struct timer_list notify_timer;
147+
148+
DEEPIN_KABI_RESERVE(1)
149+
DEEPIN_KABI_RESERVE(2)
150+
DEEPIN_KABI_RESERVE(3)
146151
};
147152

148153
/*
@@ -200,6 +205,11 @@ struct cgroup_subsys_state {
200205
* fields of the containing structure.
201206
*/
202207
struct cgroup_subsys_state *parent;
208+
209+
DEEPIN_KABI_RESERVE(1)
210+
DEEPIN_KABI_RESERVE(2)
211+
DEEPIN_KABI_RESERVE(3)
212+
DEEPIN_KABI_RESERVE(4)
203213
};
204214

205215
/*
@@ -297,6 +307,11 @@ struct css_set {
297307

298308
/* For RCU-protected deletion */
299309
struct rcu_head rcu_head;
310+
311+
DEEPIN_KABI_RESERVE(1)
312+
DEEPIN_KABI_RESERVE(2)
313+
DEEPIN_KABI_RESERVE(3)
314+
DEEPIN_KABI_RESERVE(4)
300315
};
301316

302317
struct cgroup_base_stat {
@@ -368,6 +383,11 @@ struct cgroup_rstat_cpu {
368383
*/
369384
struct cgroup *updated_children; /* terminated by self cgroup */
370385
struct cgroup *updated_next; /* NULL iff not on the list */
386+
387+
DEEPIN_KABI_RESERVE(1)
388+
DEEPIN_KABI_RESERVE(2)
389+
DEEPIN_KABI_RESERVE(3)
390+
DEEPIN_KABI_RESERVE(4)
371391
};
372392

373393
struct cgroup_freezer_state {
@@ -525,6 +545,11 @@ struct cgroup {
525545
struct bpf_local_storage __rcu *bpf_cgrp_storage;
526546
#endif
527547

548+
DEEPIN_KABI_RESERVE(1)
549+
DEEPIN_KABI_RESERVE(2)
550+
DEEPIN_KABI_RESERVE(3)
551+
DEEPIN_KABI_RESERVE(4)
552+
DEEPIN_KABI_RESERVE(5)
528553
/* All ancestors including self */
529554
struct cgroup *ancestors[];
530555
};
@@ -568,6 +593,11 @@ struct cgroup_root {
568593

569594
/* The name for this hierarchy - may be empty */
570595
char name[MAX_CGROUP_ROOT_NAMELEN];
596+
597+
DEEPIN_KABI_RESERVE(1)
598+
DEEPIN_KABI_RESERVE(2)
599+
DEEPIN_KABI_RESERVE(3)
600+
DEEPIN_KABI_RESERVE(4)
571601
};
572602

573603
/*
@@ -657,6 +687,9 @@ struct cftype {
657687
__poll_t (*poll)(struct kernfs_open_file *of,
658688
struct poll_table_struct *pt);
659689

690+
DEEPIN_KABI_RESERVE(1)
691+
DEEPIN_KABI_RESERVE(2)
692+
DEEPIN_KABI_RESERVE(3)
660693
#ifdef CONFIG_DEBUG_LOCK_ALLOC
661694
struct lock_class_key lockdep_key;
662695
#endif
@@ -691,6 +724,11 @@ struct cgroup_subsys {
691724
void (*release)(struct task_struct *task);
692725
void (*bind)(struct cgroup_subsys_state *root_css);
693726

727+
DEEPIN_KABI_RESERVE(1)
728+
DEEPIN_KABI_RESERVE(2)
729+
DEEPIN_KABI_RESERVE(3)
730+
DEEPIN_KABI_RESERVE(4)
731+
694732
bool early_init:1;
695733

696734
/*

0 commit comments

Comments
 (0)