Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- kernel/sched/fair.c, line 2639
- mm/migrate.c, line 2659
- mm/page_alloc.c
- mm/page_reporting.c, line 283
- mm/vmscan.c
Smatch caller information:
mm/page_reporting.c page_reporting_process_zone() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 0 |
| PARAM_VALUE | 4 | alloc_flags | 128 |
| BUF_SIZE | 0 | z | (-1)-0,81920 |
| BUF_SIZE | 0 | z | (-1)-0,81920 |
| DATA_SOURCE | 0 | z | $2 |
| HALF_LOCKED2 | &pool->lock |
mm/page_alloc.c __isolate_free_page() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 0 |
| PARAM_VALUE | 4 | alloc_flags | 128 |
| DATA_SOURCE | 0 | z | r page_zone |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cc->zone->lock | ||
| HALF_LOCKED2 | &zone->lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq |
mm/page_alloc.c free_frozen_page_commit() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 3 |
| PARAM_VALUE | 4 | alloc_flags | 0 |
| CAPPED_DATA | 0 | z | 1 |
| DATA_SOURCE | 0 | z | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/page_alloc.c get_page_from_freelist() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-10 |
| PARAM_VALUE | 3 | highest_zoneidx | 0-2 |
| PARAM_VALUE | 4 | alloc_flags | 8-u32max |
| CAPPED_DATA | 1 | order | 1 |
| CAPPED_DATA | 3 | highest_zoneidx | 1 |
| DATA_SOURCE | 1 | order | $1 |
| DATA_SOURCE | 2 | mark | r wmark_pages |
| DATA_SOURCE | 4 | alloc_flags | $2 [m] |
| FUZZY_MAX | 1 | order | 4 |
| BIT_INFO | 4 | alloc_flags | 0x0,0x7ffffffb |
| NOSPEC | 1 | order | |
| NOSPEC | 1 | order | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | order | 0-10[c] |
| USER_DATA | 1 | order | 0-10[c] |
| UNITS | 1 | order | unit_byte |
| HALF_LOCKED2 | global &oom_lock |
mm/vmscan.c compaction_ready() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 4-127 |
| PARAM_VALUE | 4 | alloc_flags | 0 |
| DATA_SOURCE | 0 | z | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | order | unit_byte |
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/vmscan.c should_abort_scan() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 0-127 |
| PARAM_VALUE | 4 | alloc_flags | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
mm/vmscan.c should_continue_reclaim() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 1-127,4294967168-u32max |
| PARAM_VALUE | 3 | highest_zoneidx | 0-127 |
| PARAM_VALUE | 4 | alloc_flags | 0 |
| BUF_SIZE | 0 | z | (-1),81920 |
| BUF_SIZE | 0 | z | (-1),81920 |
| DATA_SOURCE | 2 | mark | r min_wmark_pages |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | order | unit_byte |
kernel/sched/fair.c pgdat_free_space_enough() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 3 |
| PARAM_VALUE | 4 | alloc_flags | 0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | vmf->ptl | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | rcu_read |
mm/migrate.c migrate_balanced_pgdat() -> zone_watermark_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | z | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| PARAM_VALUE | 3 | highest_zoneidx | 3 |
| PARAM_VALUE | 4 | alloc_flags | 128 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | rcu_read | ||
| HALF_LOCKED2 | vmf->ptl |