Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

fs/xfs/scrub/agheader_repair.c xrep_agf_calc_from_btrees() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_addr 4096-ptr_max
PARAM_VALUE 2 agbp->b_addr->agf_bno_level 0
PARAM_VALUE 2 agbp->b_addr->agf_bno_root 0
PARAM_VALUE 2 agbp->b_addr->agf_btreeblks 0
PARAM_VALUE 2 agbp->b_addr->agf_cnt_level 0
PARAM_VALUE 2 agbp->b_addr->agf_cnt_root 0
PARAM_VALUE 2 agbp->b_addr->agf_crc 0
PARAM_VALUE 2 agbp->b_addr->agf_flcount 0-4294967295
PARAM_VALUE 2 agbp->b_addr->agf_flfirst 0-4294967295
PARAM_VALUE 2 agbp->b_addr->agf_fllast 0-4294967295
PARAM_VALUE 2 agbp->b_addr->agf_freeblks 0
PARAM_VALUE 2 agbp->b_addr->agf_length 0-4294967295
PARAM_VALUE 2 agbp->b_addr->agf_longest 0
PARAM_VALUE 2 agbp->b_addr->agf_lsn 0
PARAM_VALUE 2 agbp->b_addr->agf_magicnum 1480673094
PARAM_VALUE 2 agbp->b_addr->agf_refcount_blocks 0
PARAM_VALUE 2 agbp->b_addr->agf_refcount_level 0
PARAM_VALUE 2 agbp->b_addr->agf_refcount_root 0
PARAM_VALUE 2 agbp->b_addr->agf_rmap_blocks 0
PARAM_VALUE 2 agbp->b_addr->agf_rmap_level 0
PARAM_VALUE 2 agbp->b_addr->agf_rmap_root 0
PARAM_VALUE 2 agbp->b_addr->agf_seqno 0-4294967295
PARAM_VALUE 2 agbp->b_addr->agf_spare2 0
PARAM_VALUE 2 agbp->b_addr->agf_versionnum 1
PARAM_VALUE 2 agbp->b_ops 6106324574340419584
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount->m_ddev_targp->bt_hash.tbl->dep_map->name 0-255
BUF_SIZE 2 agbp->b_ops 40
CAPPED_DATA 1 tp 1
DATA_SOURCE 2 agbp $1
MEM_ZERO 2 agbp->b_addr
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/agheader_repair.c xrep_agfl_collect_blocks() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 2 agbp->b_sema.lock.owner (-1)
PARAM_VALUE 2 agbp->b_sema.lock.owner_cpu u32max
PARAM_VALUE 2 agbp->b_sema.lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
CAPPED_DATA 1 tp 1
DATA_SOURCE 2 agbp $1
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/agheader_repair.c xrep_agfl_collect_blocks() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 2 agbp->b_sema.lock.owner (-1)
PARAM_VALUE 2 agbp->b_sema.lock.owner_cpu u32max
PARAM_VALUE 2 agbp->b_sema.lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
CAPPED_DATA 1 tp 1
DATA_SOURCE 2 agbp $1
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/repair.c xrep_ag_btcur_init() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/repair.c xrep_find_ag_btree_roots() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
BUF_SIZE 2 agbp->b_ops (-1),40
CAPPED_DATA 1 tp 1
DATA_SOURCE 2 agbp $1
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/bmap.c xchk_bmap_check_ag_rmaps() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount->m_ddev_targp->bt_hash.tbl->dep_map->name 0-255
CAPPED_DATA 1 tp 1
DATA_SOURCE 3 pag $2
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/libxfs/xfs_rmap_btree.c xfs_rmapbt_dup_cursor() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 3 pag 4096-ptr_max
STR_LEN 0 mp (-1)-1024
STR_LEN 1 tp (-1)-1024
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tp->t_blk_res
NO_OVERFLOW_SIMPLE 1 tp->t_rtx_res
NO_OVERFLOW_SIMPLE 1 tp->t_rtx_res_used
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/libxfs/xfs_rmap.c xfs_rmap_alloc() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_mountp 4096-ptr_max
PARAM_VALUE 2 agbp 0,4096-ptr_max
PARAM_VALUE 3 pag 4096-ptr_max
CAPPED_DATA 1 tp 1
DATA_SOURCE 1 tp $0
DATA_SOURCE 2 agbp $1
DATA_SOURCE 3 pag $2
STR_LEN 0 mp (-1)-1024
STR_LEN 1 tp (-1)-1024
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tp->t_blk_res
NO_OVERFLOW_SIMPLE 1 tp->t_rtx_res_used
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/libxfs/xfs_rmap.c xfs_rmap_finish_init_cursor() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 mp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 mp->m_errortag 4096-ptr_max
PARAM_VALUE 0 mp->m_sb.sb_agcount 1-u32max
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_mountp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 1 tp->t_mountp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 1 tp->t_mountp->m_ddev_targp->bt_file->f_inode->i_wb->dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 1 tp->t_mountp->m_errortag 4096-ptr_max
PARAM_VALUE 1 tp->t_mountp->m_sb.sb_agcount 1-u32max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_gno 0-4294967294
CAPPED_DATA 1 tp 1
CAPPED_DATA 3 pag->pag_group.xg_gno 1
DATA_SOURCE 1 tp $0
DATA_SOURCE 3 pag r to_perag
RX_PATH
TASK_NOT_RUNNING
UNITS 0 mp unit_byte

fs/xfs/libxfs/xfs_rmap.c xfs_rmap_free() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_mountp 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
CAPPED_DATA 1 tp 1
DATA_SOURCE 1 tp $0
DATA_SOURCE 2 agbp $1
DATA_SOURCE 3 pag $2
STR_LEN 0 mp (-1)-1024
STR_LEN 1 tp (-1)-1024
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 tp->t_blk_res
NO_OVERFLOW_SIMPLE 1 tp->t_rtx_res_used
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte
HALF_LOCKED2 &mp->m_growlock

fs/xfs/xfs_verify_media.c xfs_verify_report_losses() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 0 mp->m_healthmon 0,4096-ptr_max
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount->m_ddev_targp->bt_hash.tbl->dep_map->name 0-255
CAPPED_DATA 1 tp 1
DATA_SOURCE 0 mp $0
DATA_SOURCE 1 tp r xfs_trans_alloc_empty
DATA_SOURCE 3 pag r to_perag
CAPABLE 0 21
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/scrub/rmap_repair.c xrep_rmap_build_new_tree() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0
PARAM_VALUE 2 agbp 0
PARAM_VALUE 3 pag 4096-ptr_max
UNITS 0 mp unit_byte

fs/xfs/scrub/reap.c xreap_agextent_select() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
UNITS 0 mp unit_byte

fs/xfs/scrub/reap.c xreap_bmapi_select() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 3 pag 4096-ptr_max
UNITS 0 mp unit_byte

fs/xfs/scrub/common.c xchk_ag_btcur_init() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 3 pag 4096-ptr_max
CAPPED_DATA 1 tp 1
UNITS 0 mp unit_byte

fs/xfs/scrub/inode_repair.c xrep_dinode_count_ag_rmaps() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 0,4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount->m_ddev_targp->bt_hash.tbl->dep_map->name 0-255
CAPPED_DATA 1 tp 1
DATA_SOURCE 3 pag $1
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/xfs_fsmap.c xfs_getfsmap_datadev_rmapbt_query() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 1 tp->t_mountp 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_sema.first_waiter->up 0-1
PARAM_VALUE 3 pag 4096-ptr_max
BUF_SIZE 1 tp (-1)-s32max
BUF_SIZE 1 tp (-1)-s32max
CAPPED_DATA 1 tp 1
DATA_SOURCE 1 tp $0
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
UNITS 0 mp unit_byte

fs/xfs/xfs_notify_failure.c xfs_dax_notify_dev_failure() -> xfs_rmapbt_init_cursor()

Type Parameter Key Value
PARAM_VALUE 0 mp 4096-ptr_max
PARAM_VALUE 0 mp->m_healthmon 0,4096-ptr_max
PARAM_VALUE 0 mp->m_logdev_targp 4096-ptr_max
PARAM_VALUE 0 mp->m_rtdev_targp 0,4096-ptr_max
PARAM_VALUE 0 mp->m_super 4096-ptr_max
PARAM_VALUE 0 mp->m_super->s_bdi->wb_switch_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mp->m_super->s_bdi->wb_switch_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 mp->m_super->s_cop->inode_info_offs 1632,1720,1808,2632,2648,2704,2712
PARAM_VALUE 0 mp->m_super->s_umount.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mp->m_super->s_umount.first_waiter->type 0-1
PARAM_VALUE 1 tp 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next 4096-ptr_max
PARAM_VALUE 1 tp->t_items.prev->next->next 4096-ptr_max
PARAM_VALUE 2 agbp 4096-ptr_max
PARAM_VALUE 2 agbp->b_lru_ref.counter 0-4
PARAM_VALUE 3 pag 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount 4096-ptr_max
PARAM_VALUE 3 pag->pag_group.xg_mount->m_ddev_targp->bt_hash.tbl->dep_map->name 0-255
CAPPED_DATA 0 mp->m_logdev_targp 1
CAPPED_DATA 1 tp 1
DATA_SOURCE 0 mp $0
DATA_SOURCE 1 tp r xfs_trans_alloc_empty
DATA_SOURCE 3 pag r to_perag
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 agbp->b_map_count
LOCK2 global &dax_srcu
HALF_LOCKED2 global &mf_mutex