Defined in 2 files as a function:
- include/linux/memcontrol.h, line 786 (as a function)
- include/linux/memcontrol.h, line 1230 (as a function)
Referenced in 7 files:
- kernel/bpf/memalloc.c
- kernel/bpf/syscall.c, line 500
- mm/memcontrol-v1.c, line 679
- mm/memcontrol.c
- mm/page_io.c
- mm/percpu.c, line 1674
- mm/zswap.c
Smatch caller information:
mm/memcontrol.c __mem_cgroup_free() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c __memcg_kmem_uncharge_page() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->css.flags | 1-u32max |
| PARAM_VALUE | 0 | objcg->memcg->css.refcnt.data | 0,4096-ptr_max |
| CAPPED_DATA | 0 | objcg->memcg | 1 |
| DATA_SOURCE | 0 | objcg | r page_objcg |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c __memcg_slab_free_hook() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| PARAM_VALUE | 0 | objcg->memcg->css.refcnt.data | 0,4096-ptr_max |
| DATA_SOURCE | 0 | objcg | r slab_obj_ext_objcg |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c charge_memcg() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->is_root | 0 |
| DATA_SOURCE | 0 | objcg | r get_obj_cgroup_from_memcg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c current_objcg_update() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 0,2-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c current_objcg_update() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| DATA_SOURCE | 0 | objcg | r __get_obj_cgroup_from_memcg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c drain_obj_stock_slot() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c get_migration_objcg() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| DATA_SOURCE | 0 | objcg | r get_obj_cgroup_from_folio |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c mem_cgroup_css_online() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &cgroup_mutex |
mm/memcontrol.c mem_cgroup_exit() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 0,2-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/memcontrol.c mem_cgroup_migrate() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 8-u64max |
| DATA_SOURCE | 0 | objcg | r folio_objcg |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ai->migrate_lock | ||
| HALF_LOCKED2 | &ctx->completion_lock | ||
| HALF_LOCKED2 | &ctx->ring_lock |
mm/memcontrol.c uncharge_batch() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->events_percpu | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c uncharge_folio() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 8-u64max |
| CAPPED_DATA | 0 | objcg | 1 |
| DATA_SOURCE | 0 | objcg | r folio_objcg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/page_io.c swap_read_folio_zeromap() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.percpu_count_ptr | 1-u64max |
| DATA_SOURCE | 0 | objcg | r get_obj_cgroup_from_folio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/page_io.c swap_zeromap_folio_set() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.percpu_count_ptr | 1-u64max |
| DATA_SOURCE | 0 | objcg | r get_obj_cgroup_from_folio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/percpu.c pcpu_memcg_free_hook() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->css.refcnt.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.percpu_count_ptr | 1-u64max |
| CAPPED_DATA | 0 | objcg | 1 |
| PREEMPT_ADD | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | global &pcpu_lock |
kernel/bpf/syscall.c bpf_map_release_memcg() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
mm/zswap.c zswap_entry_free() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| CAPPED_DATA | 0 | objcg | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/zswap.c zswap_store() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 0,4096-ptr_max |
| DATA_SOURCE | 0 | objcg | r get_obj_cgroup_from_folio |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/bpf/memalloc.c bpf_mem_alloc_destroy() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
kernel/bpf/memalloc.c bpf_mem_alloc_destroy() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOCHECK_CALL |
mm/memcontrol-v1.c __memcg1_swapout() -> obj_cgroup_put()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->events_percpu | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->id.ref.refs.counter | (-1073741824),0-s32max |
| DATA_SOURCE | 0 | objcg | r folio_objcg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &(&mapping->i_pages)->xa_lock | ||
| HALF_LOCKED2 | &mapping->host->i_lock |