diff options
author | Roman Gushchin <guro@fb.com> | 2020-12-01 22:58:29 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-03 03:28:06 +0100 |
commit | 87944e2992bd28098c6806086a1e96bb4d0e502b (patch) | |
tree | a7a8020aa1c6c951831d34e2531053ca16c6d833 /samples/v4l | |
parent | mm: memcontrol/slab: Use helpers to access slab page's memcg_data (diff) | |
download | linux-87944e2992bd28098c6806086a1e96bb4d0e502b.tar.xz linux-87944e2992bd28098c6806086a1e96bb4d0e502b.zip |
mm: Introduce page memcg flags
The lowest bit in page->memcg_data is used to distinguish between struct
memory_cgroup pointer and a pointer to a objcgs array. All checks and
modifications of this bit are open-coded.
Let's formalize it using page memcg flags, defined in enum
page_memcg_data_flags.
Additional flags might be added later.
Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Link: https://lkml.kernel.org/r/20201027001657.3398190-4-guro@fb.com
Link: https://lore.kernel.org/bpf/20201201215900.3569844-4-guro@fb.com
Diffstat (limited to 'samples/v4l')
0 files changed, 0 insertions, 0 deletions