summaryrefslogtreecommitdiff
path: root/mm/dmapool.c
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2020-12-01 13:58:29 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-12-02 18:28:06 -0800
commit87944e2992bd28098c6806086a1e96bb4d0e502b (patch)
treea7a8020aa1c6c951831d34e2531053ca16c6d833 /mm/dmapool.c
parent270c6a71460e12b07b1dcadf7457ff95b6c6e8f4 (diff)
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 'mm/dmapool.c')
0 files changed, 0 insertions, 0 deletions