hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/include/linux/rmap.h
....@@ -42,13 +42,7 @@
4242 */
4343 atomic_t refcount;
4444
45
- /*
46
- * Count of child anon_vmas and VMAs which points to this anon_vma.
47
- *
48
- * This counter is used for making decision about reusing anon_vma
49
- * instead of forking new one. See comments in function anon_vma_clone.
50
- */
51
- unsigned degree;
45
+ unsigned degree; /* ANDROID: KABI preservation, DO NOT USE! */
5246
5347 struct anon_vma *parent; /* Parent of this anon_vma */
5448
....@@ -63,6 +57,25 @@
6357
6458 /* Interval tree of private "related" vmas */
6559 struct rb_root_cached rb_root;
60
+
61
+ /*
62
+ * ANDROID: KABI preservation, it's safe to put these at the end of this structure as it's
63
+ * only passed by a pointer everywhere, the size and internal structures are local to the
64
+ * core kernel.
65
+ */
66
+#ifndef __GENKSYMS__
67
+ /*
68
+ * Count of child anon_vmas. Equals to the count of all anon_vmas that
69
+ * have ->parent pointing to this one, including itself.
70
+ *
71
+ * This counter is used for making decision about reusing anon_vma
72
+ * instead of forking new one. See comments in function anon_vma_clone.
73
+ */
74
+ unsigned long num_children;
75
+ /* Count of VMAs whose ->anon_vma pointer points to this object. */
76
+ unsigned long num_active_vmas;
77
+#endif
78
+
6679 };
6780
6881 /*