Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- fs/xfs/libxfs/xfs_ialloc.c, line 388
- fs/xfs/scrub/inode_repair.c
- fs/xfs/xfs_inode.c, line 2532
- fs/xfs/xfs_inode_item.c, line 57
- fs/xfs/xfs_inode_item_recover.c, line 575
- fs/xfs/xfs_iunlink_item.c, line 90
Smatch caller information:
fs/xfs/xfs_buf_item_recover.c xlog_recover_do_inode_buffer() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_super | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| DATA_SOURCE | 0 | mp | $0 |
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
| LOCK2 | &bp->b_sema |
fs/xfs/xfs_iunlink_item.c xfs_iunlink_log_dinode() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_filestream->grp_time | 0-4294967295 |
| PARAM_VALUE | 0 | mp->m_quotainfo->qi_dqperchunk | 0-4294967295 |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| DATA_SOURCE | 1 | dip | r xfs_buf_offset |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | mp->m_sb_bp->b_log_item->bli_format_count | |
| UNITS | 0 | mp | unit_byte |
| HALF_LOCKED2 | &mp->m_growlock |
fs/xfs/libxfs/xfs_ialloc.c xfs_ialloc_inode_init() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_sb.sb_agblocks | 1-u32max |
| PARAM_VALUE | 0 | mp->m_sb.sb_agcount | 1-u32max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | dip->di_magic | 18766 |
| PARAM_VALUE | 1 | dip->di_next_unlinked | u32max |
| PARAM_VALUE | 1 | dip->di_version | 3 |
| CAPPED_DATA | 0 | mp->m_sb.sb_agcount | 1 |
| DATA_SOURCE | 0 | mp | $0 |
| DATA_SOURCE | 1 | dip | r xfs_make_iptr |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
fs/xfs/scrub/inode_repair.c xrep_dinode_buf_core() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | dip->di_magic | 18766 |
| PARAM_VALUE | 1 | dip->di_version | 1-3 |
| DATA_SOURCE | 1 | dip | r xfs_buf_offset |
| FUZZY_MAX | 1 | dip->di_version | 3 |
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
fs/xfs/scrub/inode_repair.c xrep_dinode_core() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | dip->di_aformat | 1-3 |
| PARAM_VALUE | 1 | dip->di_big_nextents | 0 |
| PARAM_VALUE | 1 | dip->di_extsize | 0 |
| PARAM_VALUE | 1 | dip->di_flags | 0-59391 |
| PARAM_VALUE | 1 | dip->di_format | 0-2 |
| PARAM_VALUE | 1 | dip->di_magic | 18766 |
| PARAM_VALUE | 1 | dip->di_metatype | 0-8 |
| PARAM_VALUE | 1 | dip->di_nblocks | 0 |
| PARAM_VALUE | 1 | dip->di_nextents | 0 |
| PARAM_VALUE | 1 | dip->di_nrext64_pad | 0 |
| PARAM_VALUE | 1 | dip->di_size | 0-9223372036854775807 |
| PARAM_VALUE | 1 | dip->di_v3_pad | 0 |
| PARAM_VALUE | 1 | dip->di_version | 1-3 |
| DATA_SOURCE | 1 | dip | r xfs_buf_offset |
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
fs/xfs/xfs_inode.c xfs_iflush() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_errortag | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | *dip->di_pad2 | 0-255 |
| PARAM_VALUE | 1 | *dip->di_v2_pad | 0-255 |
| DATA_SOURCE | 1 | dip | r xfs_buf_offset |
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
| LOCK2 | &ailp->ail_lock | ||
| LOCK2 | &bp->b_sema | ||
| TYPE_LOCK | (struct xfs_buf)->b_sema |
fs/xfs/xfs_inode_item_recover.c xlog_recover_inode_commit_pass2() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_ddev_targp | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_ddev_targp->bt_mount | 4096-ptr_max |
| PARAM_VALUE | 0 | mp->m_ddev_targp->bt_nr_sectors | 1-s64max |
| PARAM_VALUE | 0 | mp->m_super | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | *dip->di_pad2 | 0-255 |
| PARAM_VALUE | 1 | *dip->di_v2_pad | 0-255 |
| DATA_SOURCE | 1 | dip | r xfs_buf_offset |
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
| LOCK2 | &bp->b_sema |
fs/xfs/xfs_inode_item.c xfs_inode_item_precommit_check() -> xfs_dinode_calc_crc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mp | 4096-ptr_max |
| PARAM_VALUE | 1 | dip | 4096-ptr_max |
| PARAM_VALUE | 1 | dip->di_changecount | 0-9223372036854775807 |
| PARAM_VALUE | 1 | dip->di_magic | 18766 |
| PARAM_VALUE | 1 | dip->di_nrext64_pad | 0 |
| PARAM_VALUE | 1 | dip->di_version | 2-3 |
| PARAM_VALUE | 1 | *dip->di_pad2 | 0-255 |
| PARAM_VALUE | 1 | *dip->di_v2_pad | 0-255 |
| BUF_SIZE | 1 | dip | 0-u16max |
| BUF_SIZE | 1 | dip | 0-u16max |
| DATA_SOURCE | 1 | dip | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | mp | unit_byte |
| HALF_LOCKED2 | &mp->m_growlock |