diff options
| author | Roman Gushchin <[email protected]> | 2024-06-28 21:03:12 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-04 18:05:56 -0700 |
| commit | b5855a26dedf210bcc1deb4cb30f9f657571a28a (patch) | |
| tree | 4dab01c3d7985ceaafefc09b48b0e80cab6aa9ad /include/linux | |
| parent | 47d2702b20f514296dbd1e065ff93f926ca112bd (diff) | |
mm: memcg: gather memcg1-specific fields initialization in memcg1_memcg_init()
Gather all memcg1-specific struct mem_cgroup's members initialization in a
new memcg1_memcg_init() function, defined in mm/memcontrol-v1.c.
Obviously, if CONFIG_MEMCG_V1 is not set, there is no need to initialize
these fields, so the function becomes trivial.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Roman Gushchin <[email protected]>
Acked-by: Shakeel Butt <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions