obj_cgroup
struct obj_cgroup *objcg;
struct obj_cgroup *objcg;
int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
static inline struct mem_cgroup *get_mem_cgroup_from_objcg(struct obj_cgroup *objcg)
static inline void obj_cgroup_get(struct obj_cgroup *objcg)
static inline void obj_cgroup_put(struct obj_cgroup *objcg)
struct obj_cgroup *objcg;
struct obj_cgroup *current_obj_cgroup(void);
struct obj_cgroup *get_obj_cgroup_from_folio(struct folio *folio);
static inline struct obj_cgroup *get_obj_cgroup_from_current(void)
struct obj_cgroup *objcg = current_obj_cgroup();
int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size);
void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size);
static inline void count_objcg_events(struct obj_cgroup *objcg,
static inline struct obj_cgroup *get_obj_cgroup_from_folio(struct folio *folio)
static inline void count_objcg_events(struct obj_cgroup *objcg,
bool obj_cgroup_may_zswap(struct obj_cgroup *objcg);
void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size);
void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size);
static inline bool obj_cgroup_may_zswap(struct obj_cgroup *objcg)
static inline void obj_cgroup_charge_zswap(struct obj_cgroup *objcg,
static inline void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg,
struct obj_cgroup __rcu *objcg;
struct obj_cgroup *orig_objcg;
struct obj_cgroup;
static inline struct mem_cgroup *obj_cgroup_memcg(struct obj_cgroup *objcg)
static inline struct obj_cgroup *__folio_objcg(struct folio *folio)
return (struct obj_cgroup *)(memcg_data & ~OBJEXTS_FLAGS_MASK);
struct obj_cgroup *objcg;
static inline struct mem_cgroup *get_mem_cgroup_from_objcg(struct obj_cgroup *objcg)
static inline bool obj_cgroup_tryget(struct obj_cgroup *objcg)
static inline void obj_cgroup_get(struct obj_cgroup *objcg)
static inline void obj_cgroup_get_many(struct obj_cgroup *objcg,
static inline void obj_cgroup_put(struct obj_cgroup *objcg)
struct obj_cgroup *objcg;
struct obj_cgroup *objcg = NULL;
int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg)
struct obj_cgroup *objcg;
struct obj_cgroup *objcg;
struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt);
struct obj_cgroup *cached_objcg;
static struct obj_cgroup *obj_cgroup_alloc(void)
struct obj_cgroup *objcg;
objcg = kzalloc_obj(struct obj_cgroup);
struct obj_cgroup *objcg, *iter;
static inline void mod_objcg_mlstate(struct obj_cgroup *objcg,
struct obj_cgroup *objcg = obj_ext->objcg;
static struct obj_cgroup *__get_obj_cgroup_from_memcg(struct mem_cgroup *memcg)
struct obj_cgroup *objcg = NULL;
static struct obj_cgroup *current_objcg_update(void)
struct obj_cgroup *old, *objcg = NULL;
old = (struct obj_cgroup *)
__always_inline struct obj_cgroup *current_obj_cgroup(void)
struct obj_cgroup *objcg;
struct obj_cgroup *get_obj_cgroup_from_folio(struct folio *folio)
struct obj_cgroup *objcg;
static void obj_cgroup_uncharge_pages(struct obj_cgroup *objcg,
static int obj_cgroup_charge_pages(struct obj_cgroup *objcg, gfp_t gfp,
static struct obj_cgroup *page_objcg(const struct page *page)
return (struct obj_cgroup *)(memcg_data - MEMCG_DATA_KMEM);
static void page_set_objcg(struct page *page, const struct obj_cgroup *objcg)
struct obj_cgroup *objcg;
struct obj_cgroup *objcg = page_objcg(page);
static void __account_obj_stock(struct obj_cgroup *objcg,
static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes,
struct obj_cgroup *old = READ_ONCE(stock->cached_objcg);
struct obj_cgroup *objcg = READ_ONCE(stock->cached_objcg);
static void refill_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes,
static int obj_cgroup_charge_account(struct obj_cgroup *objcg, gfp_t gfp, size_t size,
int obj_cgroup_charge(struct obj_cgroup *objcg, gfp_t gfp, size_t size)
void obj_cgroup_uncharge(struct obj_cgroup *objcg, size_t size)
return s->size + sizeof(struct obj_cgroup *);
struct obj_cgroup *objcg;
struct obj_cgroup *objcg;
struct obj_cgroup *objcg = page_objcg(page);
struct obj_cgroup *objcg;
task->objcg = (struct obj_cgroup *)CURRENT_OBJCG_UPDATE_FLAG;
struct obj_cgroup *objcg = task->objcg;
objcg = (struct obj_cgroup *)
struct obj_cgroup *objcg;
bool obj_cgroup_may_zswap(struct obj_cgroup *objcg)
void obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)
void obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size)
struct obj_cgroup *objcg = get_obj_cgroup_from_folio(folio);
struct obj_cgroup *objcg;
extra_size += size / PCPU_MIN_ALLOC_SIZE * sizeof(struct obj_cgroup *);
struct obj_cgroup *cgroup;
struct obj_cgroup **objcgp)
struct obj_cgroup *objcg;
static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg,
struct obj_cgroup *objcg;
pcpu_memcg_pre_alloc_hook(size_t size, gfp_t gfp, struct obj_cgroup **objcgp)
static void pcpu_memcg_post_alloc_hook(struct obj_cgroup *objcg,
struct obj_cgroup *objcg = NULL;
struct obj_cgroup *objcg,
struct obj_cgroup *objcg = NULL;
struct obj_cgroup *objcg;