Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/btrfs/file.c btrfs_fallocate() -> btrfs_prealloc_file_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_flags | 0,4096-u32max |
| PARAM_VALUE | 0 | inode->i_io_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_io_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_io_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_io_list.prev->next | 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_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200 |
| PARAM_VALUE | 0 | inode->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 0 | inode->i_wb->dwork->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_wb->dwork.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_wb->list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_wb->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | mode | 0-30 |
| PARAM_VALUE | 4 | min_size | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 6 | alloc_hint | 2319888665725493248 |
| PARAM_VALUE | 6 | *alloc_hint | 0 |
| DATA_SOURCE | 1 | mode | $1 |
| BIT_INFO | 1 | mode | 0x0,0x1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | mode | 0-30 |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | num_bytes | unit_byte |
| UNITS | 4 | min_size | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/file.c btrfs_zero_range() -> btrfs_prealloc_file_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_flags | 0,4096-u32max |
| PARAM_VALUE | 0 | inode->i_io_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_io_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_io_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->empty_dir | 0,86,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->get_context | 0,706,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_cop->set_context | 0,67,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_export_op->fh_to_parent | 0,5297,148606482432692224,436469935444291584,467281172929331200 |
| PARAM_VALUE | 0 | inode->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 0 | inode->i_wb->dwork->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_wb->dwork.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_wb->list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_wb->work_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | mode | 16-30 |
| PARAM_VALUE | 2 | start | 0-18446744073709551614 |
| PARAM_VALUE | 3 | num_bytes | 1-u64max |
| PARAM_VALUE | 6 | alloc_hint | 6780017983397445632 |
| CAPPED_DATA | 0 | inode->i_mapping | 1 |
| CAPPED_DATA | 0 | inode->i_mapping->i_pages.xa_head | 1 |
| CAPPED_DATA | 2 | start | 1 |
| CAPPED_DATA | 2 | start | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| DATA_SOURCE | 1 | mode | $3 |
| BIT_INFO | 1 | mode | 0x10,0x11 |
| NOSPEC | 2 | start | |
| NOSPEC | 2 | start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | mode | 16-30 |
| USER_DATA | 2 | start | 0-9223372036854775807[c] |
| USER_DATA | 3 | num_bytes | 1-u64max[c] |
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | num_bytes | unit_byte |
| UNITS | 4 | min_size | unit_byte |
| UNITS | 5 | actual_len | unit_byte |
| HALF_LOCKED2 | &pool->lock |
fs/btrfs/relocation.c prealloc_file_extent_cluster() -> btrfs_prealloc_file_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | mode | 0 |
| PARAM_VALUE | 6 | alloc_hint | 6025392719934742528 |
| PARAM_VALUE | 6 | *alloc_hint | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | start | unit_byte |
| UNITS | 3 | num_bytes | unit_byte |
| UNITS | 4 | min_size | unit_byte |
| UNITS | 5 | actual_len | unit_byte |
| LOCK2 | &fs_info->cleaner_mutex | ||
| LOCK2 | &inode->vfs_inode.i_rwsem | ||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| TYPE_LOCK | (struct btrfs_fs_info)->cleaner_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->reclaim_bgs_lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |