Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/swapfile.c __swap_cluster_alloc_entries() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->count | 0-512 |
| CAPPED_DATA | 0 | info->table | 1 |
| DATA_SOURCE | 0 | info | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/swapfile.c alloc_swap_scan_cluster() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->count | 0-512 |
| CAPPED_DATA | 0 | info->table | 1 |
| DATA_SOURCE | 0 | info | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/swapfile.c cluster_alloc_swap_entry() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| DATA_SOURCE | 0 | info | r swap_cluster_lock |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex | ||
| TYPE_LOCK | (struct swap_info_struct)->global_cluster_lock |
mm/swapfile.c cluster_is_usable() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| DATA_SOURCE | 0 | info | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &si->global_cluster_lock |
mm/swapfile.c cluster_reclaim_range() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| PARAM_VALUE | 0 | info->count | 0-512 |
| CAPPED_DATA | 0 | info->table | 1 |
| DATA_SOURCE | 0 | info | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &info->lock | |
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex | ||
| TYPE_LOCK | (struct swap_cluster_info)->lock |
mm/swapfile.c swap_alloc_fast() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| DATA_SOURCE | 0 | info | r swap_cluster_lock |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/swapfile.c swap_cluster_alloc_table() -> cluster_is_empty()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | info | 4096-ptr_max |
| DATA_SOURCE | 0 | info | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ci->lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |