Defined in 2 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/f2fs/compress.c f2fs_alloc_dic() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr | 2-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| CAPPED_DATA | 1 | nr | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | nr | unit_page |
fs/f2fs/compress.c f2fs_alloc_dic() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | nr | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | nr | unit_page |
fs/f2fs/compress.c f2fs_compress_pages() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | nr | 0-1048576 |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &sbi->writepages |
fs/f2fs/compress.c f2fs_init_compress_ctx() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | nr | unit_page |
fs/f2fs/compress.c f2fs_prepare_decomp_mem() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| BUF_SIZE | 0 | sbi | (-1),1-s32max |
| BUF_SIZE | 0 | sbi | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | sbi->page_array_slab->object_size | |
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | nr | unit_page |
fs/f2fs/compress.c f2fs_write_compressed_pages() -> page_array_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->nm_info | 4096-ptr_max |
| PARAM_VALUE | 0 | sbi->nm_info->nat_tree_lock.internal_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | sbi->nm_info->nat_tree_lock.internal_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | nr | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| CAPPED_DATA | 1 | nr | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | nr | unit_page |
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &sbi->writepages | ||
| HALF_LOCKED2 | 0 | &sbi->cp_rwsem.internal_rwsem | |
| HALF_LOCKED2 | 0 | &sbi->node_write.internal_rwsem | |
| TYPE_LOCK | (struct f2fs_rwsem)->internal_rwsem |