Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/ext4/extents.c ext4_alloc_file_blocks() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext4/extents.c ext4_alloc_file_blocks() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->empty_dir | 0,86,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->get_context | 0,706,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->set_context | 0,67,4096-ptr_max |
| PARAM_VALUE | 1 | nrblocks | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | inode | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | inode->i_sb->s_fs_info->s_first_error_block | s64min-s64max[c] |
| USER_DATA | 0 | inode->i_sb->s_fs_info->s_first_error_ino | 0-4294967295 |
| UNITS | 1 | nrblocks | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext4/extents.c ext4_convert_unwritten_extents() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| DATA_SOURCE | 0 | inode | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | inode->i_size |
fs/ext4/extents.c ext4_ext_calc_credits_for_single_extent() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb | 4096-ptr_max |
| CAPPED_DATA | 0 | inode->i_sb | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| DATA_SOURCE | 1 | nrblocks | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ext4/inode.c ext4_do_writepages() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->i_pages.xa_flags | 33554432-u32max |
| PARAM_VALUE | 0 | inode->i_mapping->nrpages | 1-u64max |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->inode_info_offs | 1632,1720,2632,2648 |
| PARAM_VALUE | 1 | nrblocks | 2048 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ext4/inode.c ext4_iomap_alloc() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_data.host->i_sb->s_export_op->fh_to_parent | 0,4672,148606482432692224,436469935444291584,457356038048772096,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->empty_dir | 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->get_context | 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416 |
| PARAM_VALUE | 0 | inode->i_sb->s_cop->set_context | 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_err_report.is_hard | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_err_report.is_lazy | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_err_report.is_queued | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_err_report.is_soft | 0-1 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_error_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_es->s_free_blocks_count_hi | 0 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_es_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_freeclusters_counter->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | inode->i_sb->s_fs_info->s_freeinodes_counter->lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | inode->i_size | s64min-9223372036854775806 |
| PARAM_VALUE | 0 | inode->i_wb->dwork.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | inode->i_wb->dwork.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | inode->i_wb->dwork.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | *inode->i_sb->s_fs_info->s_first_error_func | 0-255 |
| PARAM_VALUE | 0 | *inode->i_sb->s_fs_info->s_last_error_func | 0-255 |
| CAPPED_DATA | 0 | inode | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| USER_DATA | 0 | inode->i_sb->s_fs_info->s_first_error_block | s64min-s64max[c] |
| USER_DATA | 0 | inode->i_sb->s_fs_info->s_first_error_ino | 0-4294967295 |
| USER_DATA | 1 | nrblocks | s32min-s32max |
| UNITS | 1 | nrblocks | unit_byte |
fs/ext4/inode.c ext4_iomap_alloc() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_data.host->i_sb->s_export_op->fh_to_parent | 0,4672,148606482432692224,436469935444291584,457356038048772096,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | inode->i_size | s64min-9223372036854775806 |
| PARAM_VALUE | 1 | nrblocks | 0-4096 |
| CAPPED_DATA | 0 | inode | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| USER_DATA | 1 | nrblocks | 1-4096[c] |
| UNITS | 1 | nrblocks | unit_byte |
fs/ext4/inode.c ext4_journal_ensure_extent_credits() -> ext4_chunk_trans_blocks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 1 | nrblocks | 1 |
| DATA_SOURCE | 0 | inode | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | inode->i_bytes | |
| NO_OVERFLOW_SIMPLE | 0 | inode->i_size |