Commit 6400b81a authored by T.J. Mercier's avatar T.J. Mercier Committed by Carlos Llamas
Browse files

ANDROID: GKI: Add cgroup ABI padding

To facilitate potential future backports and fixes.

Specifically, this padding is meant to accommodate new fields necessary
to fix incorrect /proc/cgroups accounting as reported at [1]. Reserve
space for an array of atomic_t for each subsystem to track css counts.
Additionaly reserve space for a pointer in struct cgroup in case we must
implement hierarchical accounting instead of root-only accounting.

sizeof(atomic_t) < sizeof(u64), so a byte array is used to reserve this
space to avoid memory waste if we were to try to stuff atomic_ts into an
array of u64s.

[1] https://lore.kernel.org/all/20240528163713.2024887-1-tjmercier@google.com/



Bug: 293511579
Change-Id: I498b4a3a2736f2d66ecd70d63577e756a8c69db0
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent a0057176
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment