Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 5 files:
- fs/btrfs/inode.c, line 10283
- fs/f2fs/data.c, line 4351
- fs/iomap/swapfile.c, line 69
- mm/page_io.c
- mm/swapfile.c
Smatch caller information:
mm/page_io.c generic_swapfile_activate() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio | 0 |
| PARAM_VALUE | 0 | sis->comp.done | 0 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->flags | 1,65 |
| PARAM_VALUE | 0 | sis->inuse_pages.counter | 1073741824 |
| PARAM_VALUE | 0 | sis->list.prio | 0 |
| PARAM_VALUE | 0 | sis->max | 1-u32max |
| PARAM_VALUE | 0 | sis->ops | 4066553769318047744 |
| PARAM_VALUE | 0 | sis->users.data->confirm_switch | 0 |
| PARAM_VALUE | 0 | sis->users.data->count.counter | s64min-(-9223372036854775807),0-s64max |
| PARAM_VALUE | 0 | sis->users.data->ref | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0-4294967294 |
| PARAM_VALUE | 2 | nr_pages | 1 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis->ops | 32 |
| CAPPED_DATA | 0 | sis->max | 1 |
| CAPPED_DATA | 0 | sis->pages | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| DATA_SOURCE | 0 | sis | $0 |
| CAPABLE | 0 | 21 | |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| UNITS | 1 | start_page | unit_page |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
mm/page_io.c swap_fs_activate() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 3 | start_block | 0 |
| DATA_SOURCE | 0 | sis | $0 |
| UNITS | 2 | nr_pages | unit_page |
mm/swapfile.c setup_swap_extents() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.node_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.node_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.node_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio | 0 |
| PARAM_VALUE | 0 | sis->avail_list.prio_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.done | 0 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->flags | 1,65 |
| PARAM_VALUE | 0 | sis->inuse_pages.counter | 1073741824 |
| PARAM_VALUE | 0 | sis->list.node_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.node_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.node_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.node_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.node_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.prio | 0 |
| PARAM_VALUE | 0 | sis->list.prio_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.prio_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.prio_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.prio_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->list.prio_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->ops | 4066553769318047744 |
| PARAM_VALUE | 0 | sis->users.data->confirm_switch | 0 |
| PARAM_VALUE | 0 | sis->users.data->count.counter | s64min-(-9223372036854775807),0-s64max |
| PARAM_VALUE | 0 | sis->users.data->ref | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0 |
| PARAM_VALUE | 3 | start_block | 0 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis | (-1),952 |
| CAPPED_DATA | 0 | sis->max | 1 |
| CAPPED_DATA | 0 | sis->pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| DATA_SOURCE | 0 | sis | $0 |
| CAPABLE | 0 | 21 | |
| UNITS | 2 | nr_pages | unit_page |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/btrfs/inode.c btrfs_add_swap_extent() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio | 0 |
| PARAM_VALUE | 0 | sis->comp.done | 0 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->flags | 1,65 |
| PARAM_VALUE | 0 | sis->inuse_pages.counter | 1073741824 |
| PARAM_VALUE | 0 | sis->list.prio | 0 |
| PARAM_VALUE | 0 | sis->max | 1-u32max |
| PARAM_VALUE | 0 | sis->ops | 4066553769318047744 |
| PARAM_VALUE | 0 | sis->users.data->confirm_switch | 0 |
| PARAM_VALUE | 0 | sis->users.data->count.counter | s64min-(-9223372036854775807),0-s64max |
| PARAM_VALUE | 0 | sis->users.data->ref | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0-4294967294 |
| PARAM_VALUE | 2 | nr_pages | 1-u32max |
| PARAM_VALUE | 3 | start_block | 0-4503599627370494 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis->ops | 32 |
| CAPPED_DATA | 0 | sis->max | 1 |
| CAPPED_DATA | 0 | sis->pages | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 3 | start_block | 1 |
| CAPPED_DATA | 3 | start_block | 1 |
| DATA_SOURCE | 0 | sis | $0 |
| CAPABLE | 0 | 21 | |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| UNITS | 1 | start_page | unit_page |
| UNITS | 2 | nr_pages | unit_page |
| UNITS | 3 | start_block | unit_page |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/f2fs/data.c check_swap_activate() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->avail_list.prio | 0 |
| PARAM_VALUE | 0 | sis->comp.done | 0 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | sis->comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->comp.wait.task_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->flags | 1,65 |
| PARAM_VALUE | 0 | sis->inuse_pages.counter | 1073741824 |
| PARAM_VALUE | 0 | sis->list.prio | 0 |
| PARAM_VALUE | 0 | sis->max | 1-u32max |
| PARAM_VALUE | 0 | sis->ops | 4066553769318047744 |
| PARAM_VALUE | 0 | sis->users.data->confirm_switch | 0 |
| PARAM_VALUE | 0 | sis->users.data->count.counter | s64min-(-9223372036854775807),0-s64max |
| PARAM_VALUE | 0 | sis->users.data->ref | 4096-ptr_max |
| PARAM_VALUE | 1 | start_page | 0-4294967294 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis | (-1),952 |
| BUF_SIZE | 0 | sis->ops | 32 |
| CAPPED_DATA | 0 | sis->max | 1 |
| CAPPED_DATA | 0 | sis->pages | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| DATA_SOURCE | 0 | sis | $0 |
| FUZZY_MAX | 1 | start_page | 0 |
| CAPABLE | 0 | 21 | |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| UNITS | 1 | start_page | unit_page |
| UNITS | 2 | nr_pages | unit_page |
| UNITS | 3 | start_block | unit_page |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/iomap/swapfile.c iomap_swapfile_add_extent() -> add_swap_extent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sis | 4096-ptr_max |
| PARAM_VALUE | 0 | sis->max | 1-u32max |
| PARAM_VALUE | 1 | start_page | 0-4294967294 |
| PARAM_VALUE | 2 | nr_pages | 1-u32max |
| PARAM_VALUE | 3 | start_block | 0 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 1 | start_page | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPABLE | 0 | 21 | |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| PARAM_COMPARE | 1 | start_page | < $0->max |
| UNITS | 1 | start_page | unit_page |
| UNITS | 2 | nr_pages | unit_page |
| UNITS | 3 | start_block | unit_page |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |