Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/btrfs/dir-item.c btrfs_search_dir_index_item() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 2512129198074413056 |
| PARAM_VALUE | 1 | key->type | 96 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 2 | path | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dentry->d_sb->s_vfs_rename_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem |
fs/btrfs/dir-item.c btrfs_search_dir_index_item() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 2512129198074413056 |
| PARAM_VALUE | 1 | key->type | 96 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 2 | path | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dentry->d_sb->s_vfs_rename_mutex | ||
| HALF_LOCKED2 | &fs_info->subvol_sem |
fs/btrfs/dev-replace.c mark_block_group_to_copy() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 8107490364676304896 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| CAPABLE | 0 | 21 | |
| LOCK2 | &fs_info->chunk_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/dev-replace.c mark_block_group_to_copy() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 8107490364676304896 |
| PARAM_VALUE | 1 | key->type | 204 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| CAPABLE | 0 | 21 | |
| LOCK2 | &fs_info->chunk_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/xattr.c btrfs_listxattr() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 4031729874327875584 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| TASK_NOT_RUNNING |
fs/btrfs/xattr.c btrfs_listxattr() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 4031729874327875584 |
| PARAM_VALUE | 1 | key->type | 0-24 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| TASK_NOT_RUNNING |
fs/btrfs/volumes.c btrfs_read_chunk_tree() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 7185945726307803136 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| LOCK2 | global &uuid_mutex |
fs/btrfs/volumes.c btrfs_read_chunk_tree() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 7185945726307803136 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| LOCK2 | global &uuid_mutex |
fs/btrfs/inode.c btrfs_real_readdir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 8010012470978748416 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/btrfs/inode.c btrfs_real_readdir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 8010012470978748416 |
| PARAM_VALUE | 1 | key->type | 96 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r btrfs_alloc_path |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/btrfs/block-group.c find_first_block_group() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 1-u64max |
| PARAM_VALUE | 1 | key | 5882399149750390784 |
| PARAM_VALUE | 2 | path | 1-u64max |
| DATA_SOURCE | 2 | path | $1 |
fs/btrfs/block-group.c find_first_block_group() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 1-u64max |
| PARAM_VALUE | 1 | key | 5882399149750390784 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | $1 |
fs/btrfs/block-group.c sample_block_group_extent_item() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | key | 8996849894350815232 |
| PARAM_VALUE | 2 | path | 3421418616241717248 |
| DATA_SOURCE | 0 | root | r btrfs_extent_root |
| DATA_SOURCE | 1 | key | $3 |
| DATA_SOURCE | 2 | path | $4 |
| LOCK2 | &caching_ctl->mutex | ||
| LOCK2 | &fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_caching_control)->mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->commit_root_sem |
fs/btrfs/block-group.c sample_block_group_extent_item() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | root | 4096-ptr_max |
| PARAM_VALUE | 1 | key | 8996849894350815232 |
| PARAM_VALUE | 1 | key->objectid | 0-18446744073709551614 |
| PARAM_VALUE | 2 | path | 3421418616241717248 |
| CAPPED_DATA | 1 | key->objectid | 1 |
| DATA_SOURCE | 0 | root | r btrfs_extent_root |
| DATA_SOURCE | 1 | key | $3 |
| DATA_SOURCE | 2 | path | $4 |
| LOCK2 | &caching_ctl->mutex | ||
| LOCK2 | &fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct btrfs_caching_control)->mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->commit_root_sem |
fs/btrfs/send.c can_rmdir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 2880752239972401152 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c can_rmdir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 2880752239972401152 |
| PARAM_VALUE | 1 | key->objectid | 1-255,257-u64max |
| PARAM_VALUE | 1 | key->type | 96 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c did_create_dir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 1218335416631123968 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c did_create_dir() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 1218335416631123968 |
| PARAM_VALUE | 1 | key->objectid | 0-255,257-u64max |
| PARAM_VALUE | 1 | key->type | 96 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c is_ancestor() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 7592115135518732288 |
| PARAM_VALUE | 1 | key->objectid | 257-u64max |
| PARAM_VALUE | 1 | key->type | 12-13 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c is_ancestor() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 7592115135518732288 |
| PARAM_VALUE | 1 | key->objectid | 257-u64max |
| PARAM_VALUE | 1 | key->type | 12-13 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 0 | root | $0 |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_extents() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 6158017031811108864 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_extents() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 6158017031811108864 |
| PARAM_VALUE | 1 | key->type | 108 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_new_xattrs() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 6305170152715374592 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_new_xattrs() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 6305170152715374592 |
| PARAM_VALUE | 1 | key->type | 24 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_refs() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 977822955254960128 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |
fs/btrfs/send.c process_all_refs() -> btrfs_get_next_valid_item()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | key | 977822955254960128 |
| PARAM_VALUE | 1 | key->type | 12-13 |
| PARAM_VALUE | 2 | path | 4096-ptr_max |
| DATA_SOURCE | 2 | path | r alloc_path_for_send |