Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- fs/file.c
- fs/gfs2/bmap.c
- tools/testing/selftests/kvm/include/kvm_util.h, line 455
- tools/testing/selftests/kvm/lib/kvm_util.c
Smatch caller information:
fs/gfs2/bmap.c __gfs2_punch_hole() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_height | 1-255 |
| DATA_SOURCE | 0 | ip | r GFS2_I |
| DATA_SOURCE | 1 | offset | $1 |
| DATA_SOURCE | 2 | length | $2 |
| NOSPEC | 1 | offset | |
| NOSPEC | 1 | offset | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | offset | 0-9223372036854775807 |
| USER_DATA | 2 | length | 1-9223372036854775807 |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/gfs2/bmap.c do_shrink() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_height | 1-255 |
| PARAM_VALUE | 1 | offset | 0-9223372036854775807 |
| PARAM_VALUE | 2 | length | 0 |
| CAPPED_DATA | 1 | offset | 1 |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 0 | ip | r GFS2_I |
| DATA_SOURCE | 1 | offset | $1 |
| CONSTRAINT | 1 | offset | <3994 |
| NOSPEC | 1 | offset | |
| NOSPEC | 1 | offset | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | offset | 0-9223372036854775807[c] |
| UNITS | 1 | offset | unit_byte |
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/gfs2/bmap.c gfs2_file_dealloc() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_eattr | 0 |
| PARAM_VALUE | 0 | ip->i_gl->gl_ops->go_flags | 0,2-3 |
| PARAM_VALUE | 0 | ip->i_height | 1-255 |
| PARAM_VALUE | 0 | ip->i_inode.i_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | ip->i_inode.i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ip->i_inode.i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ip->i_inode.i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_name.ln_sbd->sd_lockstruct.ls_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_name.ln_sbd->sd_vfs->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_flags | 0,2-3 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_held | 0,6179549714839506944 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_subclass | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_type | 1-6,8-9 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_rgl->rl_magic | 18225520 |
| PARAM_VALUE | 0 | ip->i_rw_mutex.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ip->i_rw_mutex.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | length | 0 |
| CAPPED_DATA | 0 | ip | 1 |
| DATA_SOURCE | 0 | ip | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/bmap.c gfs2_iomap_begin_write() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_res.rs_reserved | 0 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_name.ln_sbd->sd_lockstruct.ls_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_name.ln_sbd->sd_vfs->s_umount.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_flags | 0,2-3 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_held | 0,6179549714839506944 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_subclass | 0-1 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_gl->gl_ops->go_type | 1-6,8-9 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_reserved | 1-2147483646 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_rgl->rl_magic | 18225520 |
| PARAM_VALUE | 0 | ip->i_rgd_gh.gh_gl | 0 |
| PARAM_VALUE | 0 | ip->i_rw_mutex.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ip->i_rw_mutex.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | ip | r GFS2_I |
| NOCHECK_CALL | |||
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | length | unit_byte |
fs/gfs2/bmap.c gfs2_iomap_end() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_qadata | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_res.rs_reserved | 0 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_reserved | 1-2147483646 |
| PARAM_VALUE | 0 | ip->i_res.rs_rgd->rd_rsspin.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ip->i_rgd_gh.gh_gl | 0 |
| PARAM_VALUE | 0 | ip->i_rgd_gh.gh_ip | 0 |
| PARAM_VALUE | 0 | ip->i_rgd_gh.gh_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0-9223372036854775806,9223372036854775808-u64max |
| PARAM_VALUE | 2 | length | 1-u64max |
| CAPPED_DATA | 1 | offset | 1 |
| DATA_SOURCE | 0 | ip | r GFS2_I |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | offset | unit_byte |
| UNITS | 2 | length | unit_byte |
fs/gfs2/bmap.c gfs2_truncatei_resume() -> punch_hole()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ip | 4096-ptr_max |
| PARAM_VALUE | 0 | ip->i_diskflags | 536870912-u32max |
| PARAM_VALUE | 2 | length | 0 |
| DATA_SOURCE | 0 | ip | $0 |
| BIT_INFO | 0 | ip->i_diskflags | 0x20000000,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &rgd->rd_mutex | ||
| HALF_LOCKED2 | &rs->rs_rgd->rd_mutex |