Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
fs/btrfs/dir-item.c btrfs_lookup_match_dir() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 0 | *path->locks | 0-255 |
| PARAM_VALUE | 0 | *path->slots | s32min-s32max |
| BUF_SIZE | 0 | path | (-1)-s32max |
| BUF_SIZE | 0 | path | (-1)-s32max |
| BUF_SIZE | 1 | name | s32min-s32max |
| DATA_SOURCE | 0 | path | $2 |
| DATA_SOURCE | 1 | name | $4 |
| DATA_SOURCE | 2 | name_len | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | name_len | |
| UNITS | 2 | name_len | unit_byte |
| BYTE_COUNT | 1 | ==name2 | 8050 |
fs/btrfs/dir-item.c btrfs_search_dir_index_item() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 0 | path->nodes | 4096-ptr_max |
| PARAM_VALUE | 0 | *path->locks | 0-255 |
| PARAM_VALUE | 0 | *path->nodes | 0 |
| PARAM_VALUE | 0 | *path->slots | 0 |
| PARAM_VALUE | 2 | name_len | 0 |
| BUF_SIZE | 1 | name | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | path | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | name_len | |
| UNITS | 2 | name_len | unit_byte |
| 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 insert_with_overflow() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 1-u64max |
| PARAM_VALUE | 0 | *path->locks | 0-255 |
| PARAM_VALUE | 0 | *path->slots | s32min-s32max |
| BUF_SIZE | 1 | name | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | name | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | path | $2 |
| DATA_SOURCE | 1 | name | $5 |
| DATA_SOURCE | 2 | name_len | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | name_len | |
| UNITS | 2 | name_len | unit_byte |
fs/btrfs/xattr.c btrfs_setxattr() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 0 | path->nodes | 4096-ptr_max |
| PARAM_VALUE | 0 | *path->locks | 0-255 |
| PARAM_VALUE | 0 | *path->slots | s32min-s32max |
| PARAM_VALUE | 2 | name_len | 0-1010101 |
| BUF_SIZE | 1 | name | (-1),24-25 |
| BUF_SIZE | 1 | name | (-1),24-25 |
| CAPPED_DATA | 2 | name_len | 1 |
| DATA_SOURCE | 0 | path | r btrfs_alloc_path |
| DATA_SOURCE | 1 | name | $2 |
| DATA_SOURCE | 2 | name_len | r __fortify_strlen |
| STR_LEN | 0 | path | (-1),23-24 |
| STR_LEN | 1 | name | (-1),23-24 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | name_len | unit_byte |
fs/btrfs/xattr.c btrfs_setxattr() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| PARAM_VALUE | 0 | *path->locks | 0-255 |
| PARAM_VALUE | 0 | *path->slots | s32min-s32max |
| PARAM_VALUE | 2 | name_len | 0-1010101 |
| BUF_SIZE | 1 | name | (-1),24-25 |
| BUF_SIZE | 1 | name | (-1),24-25 |
| CAPPED_DATA | 2 | name_len | 1 |
| DATA_SOURCE | 0 | path | r btrfs_alloc_path |
| DATA_SOURCE | 1 | name | $2 |
| DATA_SOURCE | 2 | name_len | r __fortify_strlen |
| STR_LEN | 0 | path | (-1),23-24 |
| STR_LEN | 1 | name | (-1),23-24 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | name_len | unit_byte |
fs/btrfs/send.c wait_for_dest_dir_move() -> btrfs_match_dir_item_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | path | 4096-ptr_max |
| DATA_SOURCE | 0 | path | r alloc_path_for_send |
| UNITS | 2 | name_len | unit_byte |