Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- fs/btrfs/extent-tree.c, line 5298
- fs/btrfs/extent_io.c, line 3888
- fs/btrfs/locking.c, line 100
- fs/btrfs/tree-mod-log.c
Smatch caller information:
fs/btrfs/extent_io.c alloc_extent_buffer() -> btrfs_set_buffer_lockdep_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objectid | 0-18446744073709551607,18446744073709551609-u64max |
| PARAM_VALUE | 1 | eb | 1-u64max |
| DATA_SOURCE | 2 | level | $4 |
| FUZZY_MAX | 0 | objectid | 5 |
| NOSPEC | 0 | objectid | |
| NOSPEC | 0 | objectid | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | objectid | 5,256-9223372036854775807[c] |
| UNITS | 0 | objectid | unit_byte |
| UNITS | 2 | level | unit_byte |
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &fs_info->commit_root_sem |
fs/btrfs/tree-mod-log.c btrfs_get_old_root() -> btrfs_set_buffer_lockdep_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | eb | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->folio_shift | 12 |
| PARAM_VALUE | 1 | eb->folio_size | 4096 |
| PARAM_VALUE | 1 | eb->fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->eb_leak_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | eb->leak_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->leak_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->len | 0-65536 |
| PARAM_VALUE | 1 | eb->lock.count.counter | 0 |
| PARAM_VALUE | 1 | eb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | eb->lock.first_waiter | 0 |
| PARAM_VALUE | 1 | eb->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->lock.osq.tail.counter | 0 |
| PARAM_VALUE | 1 | eb->lock.owner.counter | 0 |
| PARAM_VALUE | 1 | eb->refs.refs.counter | 1 |
| PARAM_VALUE | 1 | eb->writeback_inhibitors.counter | 0 |
| PARAM_VALUE | 2 | level | 0-255 |
| CAPPED_DATA | 1 | eb | 1 |
| CAPPED_DATA | 1 | eb->len | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | eb->len | |
| NO_OVERFLOW_SIMPLE | 1 | eb->start |
fs/btrfs/tree-mod-log.c btrfs_tree_mod_log_rewind() -> btrfs_set_buffer_lockdep_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | eb | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->folio_shift | 12 |
| PARAM_VALUE | 1 | eb->folio_size | 4096 |
| PARAM_VALUE | 1 | eb->fs_info | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->allocated_ebs.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->fs_info->eb_leak_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | eb->leak_list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->leak_list.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->len | 0-65536 |
| PARAM_VALUE | 1 | eb->lock.count.counter | 0 |
| PARAM_VALUE | 1 | eb->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | eb->lock.first_waiter | 0 |
| PARAM_VALUE | 1 | eb->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->lock.osq.tail.counter | 0 |
| PARAM_VALUE | 1 | eb->lock.owner.counter | 0 |
| PARAM_VALUE | 1 | eb->refs.refs.counter | 1 |
| PARAM_VALUE | 1 | eb->writeback_inhibitors.counter | 0 |
| PARAM_VALUE | 2 | level | 0-255 |
| CAPPED_DATA | 1 | eb | 1 |
| CAPPED_DATA | 1 | eb->len | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | eb->len | |
| NO_OVERFLOW_SIMPLE | 1 | eb->start |
fs/btrfs/locking.c btrfs_maybe_reset_lockdep_class() -> btrfs_set_buffer_lockdep_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | eb | 4096-ptr_max |
| PARAM_VALUE | 1 | eb->lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | eb->lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | level | 0-255 |
| BUF_SIZE | 1 | eb | (-1)-s32max |
| BUF_SIZE | 1 | eb | (-1)-s32max |
| CAPPED_DATA | 1 | eb | 1 |
| DATA_SOURCE | 1 | eb | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
fs/btrfs/extent-tree.c btrfs_init_new_buffer() -> btrfs_set_buffer_lockdep_class()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | eb | 4096-ptr_max |
| CAPPED_DATA | 1 | eb | 1 |
| DATA_SOURCE | 1 | eb | r btrfs_find_create_tree_block |
| DATA_SOURCE | 2 | level | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &fs_info->subvol_sem | ||
| HALF_LOCKED2 | &trans->fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &trans->fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &trans->fs_info->fs_roots_radix_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_ioctl_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_lock | ||
| HALF_LOCKED2 | &trans->fs_info->unused_bg_unpin_mutex | ||
| HALF_LOCKED2 | &trans->transaction->delayed_refs.lock |