Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/btrfs/compression.c
- fs/btrfs/defrag.c, line 747
- fs/btrfs/extent_io.c, line 3088
- fs/btrfs/extent_map.c
- fs/btrfs/inode.c, line 7236
- fs/btrfs/tests/extent-map-tests.c
Smatch caller information:
fs/btrfs/extent_io.c try_release_extent_mapping() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tree->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | tree->lock.raw_lock.cnts.counter | 0-s32max |
| BUF_SIZE | 0 | tree | 96 |
| CAPPED_DATA | 1 | start | 1 |
| CAPPED_DATA | 1 | start | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| HALF_LOCKED2 | &folio->private->lock | ||
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/defrag.c defrag_lookup_extent() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | start | 0-18446744073709551614 |
| BUF_SIZE | 0 | tree | 96 |
| CAPPED_DATA | 1 | start | 1 |
| CAPPED_DATA | 1 | start | 1 |
| DATA_SOURCE | 1 | start | $1 |
| NOSPEC | 1 | start | |
| USER_DATA | 1 | start | 0-9223372039002259454[c] |
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | &inode->vfs_inode.i_rwsem | ||
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/btrfs/extent_map.c btrfs_drop_extent_map_range() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tree->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | tree->lock.raw_lock.cnts.counter | 0-s32max |
| BUF_SIZE | 0 | tree | 96 |
| DATA_SOURCE | 1 | start | $1 |
| PARAM_COMPARE | 1 | start | <= $2 |
| PARAM_COMPARE | 2 | len | >= $1 |
| PARAM_COMPARE | 2 | len | >= $1 |
| NOSPEC | 1 | start | |
| NOSPEC | 1 | start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | start | 0-u64max[c] |
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &inode->i_mmap_lock | ||
| HALF_LOCKED2 | &leaf->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/extent_map.c btrfs_split_extent_map() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tree->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | tree->lock.raw_lock.cnts.counter | 0-s32max |
| BUF_SIZE | 0 | tree | 96 |
| DATA_SOURCE | 1 | start | $1 |
| DATA_SOURCE | 2 | len | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | start | |
| NO_OVERFLOW_SIMPLE | 2 | len | |
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/extent_map.c btrfs_unpin_extent_cache() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tree->lock.owner_cpu | 0 |
| PARAM_VALUE | 0 | tree->lock.raw_lock.cnts.counter | 0-s32max |
| BUF_SIZE | 0 | tree | 96 |
| DATA_SOURCE | 1 | start | $1 |
| DATA_SOURCE | 2 | len | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | start | |
| NO_OVERFLOW_SIMPLE | 2 | len | |
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/compression.c add_ra_bio_folios() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | start | 0-18446744073709551614 |
| BUF_SIZE | 0 | tree | 96 |
| CAPPED_DATA | 1 | start | 1 |
| CAPPED_DATA | 1 | start | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/compression.c btrfs_submit_compressed_read() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| BUF_SIZE | 0 | tree | 96 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | len | unit_byte |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/tests/extent-map-tests.c test_case_7() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tree->lock.owner | (-1) |
| PARAM_VALUE | 0 | tree->lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | tree->lock.raw_lock.wlocked | 0 |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 2 | len | 16384 |
| BUF_SIZE | 0 | tree | 96 |
fs/btrfs/tests/extent-map-tests.c test_case_7() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | start | 16384 |
| PARAM_VALUE | 2 | len | 16384 |
| BUF_SIZE | 0 | tree | 96 |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/tests/extent-map-tests.c test_case_7() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | start | 32768 |
| PARAM_VALUE | 2 | len | 16384 |
| BUF_SIZE | 0 | tree | 96 |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |
fs/btrfs/tests/extent-map-tests.c test_case_7() -> btrfs_lookup_extent_mapping()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tree | 4096-ptr_max |
| PARAM_VALUE | 0 | tree->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | start | 49152 |
| PARAM_VALUE | 2 | len | u64max |
| BUF_SIZE | 0 | tree | 96 |
| LOCK2 | 0 | &tree->lock | |
| TYPE_LOCK | (struct extent_map_tree)->lock |