Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- fs/btrfs/extent_io.c, line 715
- fs/btrfs/inode.c, line 9687
- fs/btrfs/ioctl.c, line 4665
- fs/btrfs/raid56.c
- fs/btrfs/relocation.c, line 4164
Smatch caller information:
fs/btrfs/inode.c btrfs_encoded_read_regular() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | page_array | 16,4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3136 |
| BUF_SIZE | 1 | page_array | 0-u64max |
| DATA_SOURCE | 1 | page_array | r _kzalloc_noprof |
| CAPABLE | 0 | 21 | |
| NO_OVERFLOW_SIMPLE | 0 | nr_pages | |
| UNITS | 0 | nr_pages | unit_array_size |
| ELEM_COUNT | 1 | ==page_array0 | 8051 |
fs/btrfs/extent_io.c alloc_eb_folio_array() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr_pages | 1-1048575 |
| PARAM_VALUE | 1 | page_array | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3136,10248,35912 |
| BUF_SIZE | 1 | page_array | 128 |
| DATA_SOURCE | 0 | nr_pages | r num_extent_pages |
| DATA_SOURCE | 2 | gfp | $1 |
| BIT_INFO | 2 | gfp | 0x800,0xac48 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/relocation.c copy_remapped_data() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr_pages | 0-256 |
| PARAM_VALUE | 1 | page_array | 16,4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3136 |
| BUF_SIZE | 1 | page_array | 0-2048 |
| BUF_SIZE | 1 | page_array | 0-2048 |
| CAPPED_DATA | 0 | nr_pages | 1 |
| DATA_SOURCE | 1 | page_array | r _kzalloc_noprof |
| NO_OVERFLOW_SIMPLE | 0 | nr_pages | |
| UNITS | 0 | nr_pages | unit_array_size |
| ELEM_COUNT | 1 | ==page_array0 | 8051 |
| LOCK2 | &fs_info->remap_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->remap_mutex |
fs/btrfs/ioctl.c btrfs_uring_read_extent() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | page_array | 16,4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3136 |
| BUF_SIZE | 1 | page_array | 0-u64max |
| DATA_SOURCE | 1 | page_array | r _kzalloc_noprof |
| CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | nr_pages | |
| UNITS | 0 | nr_pages | unit_array_size |
| ELEM_COUNT | 1 | ==page_array0 | 8051 |
| HALF_LOCKED2 | &ctx->uring_lock |
fs/btrfs/raid56.c alloc_rbio_data_pages() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 3136 |
| BUF_SIZE | 1 | page_array | 1-s32max |
fs/btrfs/raid56.c alloc_rbio_pages() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | gfp | 3136 |
| BUF_SIZE | 1 | page_array | 1-s32max |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/raid56.c alloc_rbio_parity_pages() -> btrfs_alloc_page_array()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | page_array | 4096-ptr_max |
| PARAM_VALUE | 2 | gfp | 3136 |
| HALF_LOCKED2 | &pool->lock |