.. | .. |
---|
42 | 42 | */ |
---|
43 | 43 | atomic_t refcount; |
---|
44 | 44 | |
---|
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! */ |
---|
52 | 46 | |
---|
53 | 47 | struct anon_vma *parent; /* Parent of this anon_vma */ |
---|
54 | 48 | |
---|
.. | .. |
---|
63 | 57 | |
---|
64 | 58 | /* Interval tree of private "related" vmas */ |
---|
65 | 59 | 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 | + |
---|
66 | 79 | }; |
---|
67 | 80 | |
---|
68 | 81 | /* |
---|