Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/xfs/scrub/alloc_repair.c
- fs/xfs/scrub/refcount.c
- fs/xfs/scrub/rtbitmap_repair.c
- fs/xfs/scrub/rtrefcount.c
Smatch caller information:
fs/xfs/scrub/rtbitmap_repair.c xrep_rtbitmap_mark_free() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 1 | domain | 0 |
| PARAM_VALUE | 2 | bno | 0-4294967294 |
| PARAM_VALUE | 3 | len | 1-u32max |
| PARAM_VALUE | 4 | outcome | 4813756821637021696 |
| CAPPED_DATA | 2 | bno | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | bno | |
| UNITS | 2 | bno | unit_array_size |
fs/xfs/scrub/rtbitmap_repair.c xrep_rtbitmap_mark_free() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_group->xg_state_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cur->bc_mem.xfbtree->target->bt_hash.run_irq_work.node.a_flags.counter | s32min-s32max |
| PARAM_VALUE | 0 | cur->bc_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_read | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_write | 4096-ptr_max |
| PARAM_VALUE | 0 | *cur->bc_mem.xfbtree->target->bt_readahead_count.counters | s32min-s32max |
| PARAM_VALUE | 1 | domain | 1 |
| PARAM_VALUE | 2 | bno | 0-4294967294 |
| PARAM_VALUE | 3 | len | 1-u32max |
| PARAM_VALUE | 4 | outcome | 4813756821637021696 |
| CAPPED_DATA | 2 | bno | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | bno | |
| UNITS | 2 | bno | unit_array_size |
fs/xfs/scrub/refcount.c xchk_xref_is_not_cow_staging() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 0 | cur->bc_ops->alloc_block | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->broot_realloc | 0,205008320403959808,1877799289265856512,4624930743969431552 |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->cmp_key_with_cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->cmp_two_keys | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->dup_cursor | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->free_block | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->geom_flags | 0-3 |
| PARAM_VALUE | 0 | cur->bc_ops->get_dmaxrecs | 0,3492848713905295360,3901288766128197632,8955386628324601856 |
| PARAM_VALUE | 0 | cur->bc_ops->get_maxrecs | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->get_minrecs | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->init_key_from_rec | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->init_rec_from_cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->key_len | 4,8,40 |
| PARAM_VALUE | 0 | cur->bc_ops->keys_inorder | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->lru_refs | 1-3 |
| PARAM_VALUE | 0 | cur->bc_ops->ptr_len | 4,8 |
| PARAM_VALUE | 0 | cur->bc_ops->rec_len | 8,12,16,24 |
| PARAM_VALUE | 0 | cur->bc_ops->recs_inorder | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->set_root | 0,135209176560377856,500508166552113152,524490925254889472,5551055571258630144,6116626257139232768,9044852301428047872 |
| PARAM_VALUE | 0 | cur->bc_ops->sick_mask | 0,8,16,32,64,128,256,512 |
| PARAM_VALUE | 0 | cur->bc_ops->statoff | 76,91,106,121,136,151,166,181,196,211,226,241 |
| PARAM_VALUE | 0 | cur->bc_ops->type | 0-2 |
| PARAM_VALUE | 0 | cur->bc_ops->update_cursor | 0,2872932845050183680 |
| PARAM_VALUE | 1 | domain | 1 |
| PARAM_VALUE | 4 | outcome | 888079049122660352 |
| DATA_SOURCE | 2 | bno | $1 |
| DATA_SOURCE | 3 | len | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_ag.agbp->b_map_count | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_rec.rc.rc_startblock | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_blk_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res | |
| NO_OVERFLOW_SIMPLE | 2 | bno | |
| NO_OVERFLOW_SIMPLE | 3 | len | |
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |
fs/xfs/scrub/refcount.c xchk_xref_is_not_shared() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 0 | cur->bc_ops->alloc_block | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->broot_realloc | 0,205008320403959808,1877799289265856512,4624930743969431552 |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_read | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_write | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->cmp_key_with_cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->cmp_two_keys | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->dup_cursor | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->free_block | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->geom_flags | 0-3 |
| PARAM_VALUE | 0 | cur->bc_ops->get_dmaxrecs | 0,3492848713905295360,3901288766128197632,8955386628324601856 |
| PARAM_VALUE | 0 | cur->bc_ops->get_maxrecs | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->get_minrecs | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->init_key_from_rec | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->init_rec_from_cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->key_len | 4,8,40 |
| PARAM_VALUE | 0 | cur->bc_ops->keys_inorder | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->lru_refs | 1-3 |
| PARAM_VALUE | 0 | cur->bc_ops->ptr_len | 4,8 |
| PARAM_VALUE | 0 | cur->bc_ops->rec_len | 8,12,16,24 |
| PARAM_VALUE | 0 | cur->bc_ops->recs_inorder | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->set_root | 0,135209176560377856,500508166552113152,524490925254889472,5551055571258630144,6116626257139232768,9044852301428047872 |
| PARAM_VALUE | 0 | cur->bc_ops->sick_mask | 0,8,16,32,64,128,256,512 |
| PARAM_VALUE | 0 | cur->bc_ops->statoff | 76,91,106,121,136,151,166,181,196,211,226,241 |
| PARAM_VALUE | 0 | cur->bc_ops->type | 0-2 |
| PARAM_VALUE | 0 | cur->bc_ops->update_cursor | 0,2872932845050183680 |
| PARAM_VALUE | 1 | domain | 0 |
| PARAM_VALUE | 4 | outcome | 8923169352204611584 |
| DATA_SOURCE | 2 | bno | $1 |
| DATA_SOURCE | 3 | len | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_ag.agbp->b_map_count | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_rec.rc.rc_startblock | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_blk_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res | |
| NO_OVERFLOW_SIMPLE | 2 | bno | |
| NO_OVERFLOW_SIMPLE | 3 | len | |
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |
fs/xfs/scrub/alloc_repair.c xrep_abt_check_free_ext() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 1 | domain | 0 |
| PARAM_VALUE | 2 | bno | 0-4294967294 |
| PARAM_VALUE | 3 | len | 1-u32max |
| PARAM_VALUE | 4 | outcome | 883529056949342208 |
| CAPPED_DATA | 2 | bno | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |
fs/xfs/scrub/alloc_repair.c xrep_abt_check_free_ext() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_group->xg_state_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | cur->bc_mem.xfbtree->target->bt_hash.run_irq_work.node.a_flags.counter | s32min-s32max |
| PARAM_VALUE | 0 | cur->bc_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_read | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_write | 4096-ptr_max |
| PARAM_VALUE | 0 | *cur->bc_mem.xfbtree->target->bt_readahead_count.counters | s32min-s32max |
| PARAM_VALUE | 1 | domain | 1 |
| PARAM_VALUE | 2 | bno | 0-4294967294 |
| PARAM_VALUE | 3 | len | 1-u32max |
| PARAM_VALUE | 4 | outcome | 883529056949342208 |
| CAPPED_DATA | 2 | bno | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |
fs/xfs/scrub/rtrefcount.c xchk_xref_is_not_rt_cow_staging() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 1 | domain | 1 |
| PARAM_VALUE | 4 | outcome | 8145639954696716288 |
| CAPPED_DATA | 2 | bno | 1 |
| DATA_SOURCE | 2 | bno | $1 |
| DATA_SOURCE | 3 | len | $2 |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_blk_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res_used | |
| NO_OVERFLOW_SIMPLE | 3 | len | |
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |
fs/xfs/scrub/rtrefcount.c xchk_xref_is_not_rt_shared() -> xfs_refcount_has_records()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cur | 1-u64max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_read | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->buf_ops->verify_write | 4096-ptr_max |
| PARAM_VALUE | 0 | cur->bc_ops->type | 0-2 |
| PARAM_VALUE | 1 | domain | 0 |
| PARAM_VALUE | 4 | outcome | 845129455681826816 |
| CAPPED_DATA | 2 | bno | 1 |
| DATA_SOURCE | 2 | bno | $1 |
| DATA_SOURCE | 3 | len | $2 |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_rec.rc.rc_startblock | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_blk_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res | |
| NO_OVERFLOW_SIMPLE | 0 | cur->bc_tp->t_rtx_res_used | |
| NO_OVERFLOW_SIMPLE | 3 | len | |
| UNITS | 2 | bno | unit_array_size |
| UNITS | 3 | len | unit_array_size |