Documented in 1 files:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/gfs2/quota.c do_sync() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 1 len 88
PARAM_VALUE 2 data_blocks 2051746880500674560
PARAM_VALUE 3 ind_blocks 5701278946603712512
DATA_SOURCE 0 ip r GFS2_I
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 len unit_byte
HALF_LOCKED2 &sdp->sd_quota_sync_mutex

fs/gfs2/quota.c gfs2_set_dqblk() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 0 ip->i_gl 4096-ptr_max
PARAM_VALUE 0 ip->i_gl->gl_lockref.count 1-s32max
PARAM_VALUE 0 ip->i_inode.i_rwsem.dep_map->name 0-255
PARAM_VALUE 0 ip->i_inode.i_rwsem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 ip->i_inode.i_rwsem.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 ip->i_inode.i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 ip->i_inode.i_rwsem.osq.tail.counter 0-s32max
PARAM_VALUE 0 ip->i_inode.i_sb 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb->s_fs_info 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb->s_fs_info->sd_args.ar_quota 0-3
PARAM_VALUE 1 len 88
PARAM_VALUE 2 data_blocks 8572104106428223488
PARAM_VALUE 3 ind_blocks 6378638587737751552
DATA_SOURCE 0 ip r GFS2_I
NOCHECK_CALL
UNITS 1 len unit_byte
LOCK2 0 &ip->i_inode.i_rwsem
HALF_LOCKED2 &sb->s_umount
TYPE_LOCK (struct inode)->i_rwsem

fs/gfs2/bmap.c gfs2_iomap_begin_write() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb 4096-ptr_max
PARAM_VALUE 2 data_blocks 992732805700050944
PARAM_VALUE 3 ind_blocks 7627283120674938880
DATA_SOURCE 0 ip r GFS2_I
NOCHECK_CALL
UNITS 1 len unit_byte

fs/gfs2/file.c __gfs2_fallocate() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 1 len 4096
PARAM_VALUE 2 data_blocks 8365341900016644096
PARAM_VALUE 2 *data_blocks 0
PARAM_VALUE 3 ind_blocks 4389424950437289984
PARAM_VALUE 3 *ind_blocks 0
DATA_SOURCE 0 ip r GFS2_I
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 len unit_byte
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/gfs2/file.c __gfs2_fallocate() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb 4096-ptr_max
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_rgd_gh.gh_gl->gl_name.ln_sbd->sd_lockstruct.ls_sem.first_waiter->type 0-1
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_name.ln_sbd->sd_vfs->s_umount.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_name.ln_sbd->sd_vfs->s_umount.first_waiter->type 0-1
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_ops->go_flags 0,2-3
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_ops->go_held 0,6179549714839506944
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_ops->go_subclass 0-1
PARAM_VALUE 0 ip->i_rgd_gh.gh_gl->gl_ops->go_type 1-6,8-9
PARAM_VALUE 1 len 1-u32max
PARAM_VALUE 2 data_blocks 8365341900016644096
PARAM_VALUE 3 ind_blocks 4389424950437289984
CAPPED_DATA 1 len 1
DATA_SOURCE 0 ip r GFS2_I
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 len unit_byte
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/gfs2/file.c calc_max_reserv() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb 4096-ptr_max
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 2 data_blocks 8365341900016644096
PARAM_VALUE 3 ind_blocks 4389424950437289984
CAPPED_DATA 0 ip 1
CAPPED_DATA 1 len 1
DATA_SOURCE 0 ip $0
DATA_SOURCE 2 data_blocks $2
DATA_SOURCE 3 ind_blocks $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/gfs2/file.c gfs2_page_mkwrite() -> gfs2_write_calc_reserv()

Type Parameter Key Value
PARAM_VALUE 0 ip 4096-ptr_max
PARAM_VALUE 0 ip->i_gl 4096-ptr_max
PARAM_VALUE 0 ip->i_gl->gl_lockref.count 1-s32max
PARAM_VALUE 0 ip->i_gl->gl_name.ln_sbd 4096-ptr_max
PARAM_VALUE 0 ip->i_inode.i_sb 4096-ptr_max
PARAM_VALUE 2 data_blocks 3994989426262740992
PARAM_VALUE 3 ind_blocks 4352836266232389632
DATA_SOURCE 0 ip r GFS2_I
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL