Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/ocfs2/alloc.c ocfs2_commit_truncate() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 0 osb 4096-ptr_max
PARAM_VALUE 0 osb->journal->j_trans_barrier.first_waiter->handoff_set 0-1
PARAM_VALUE 0 osb->journal->j_trans_barrier.first_waiter->type 0-1
PARAM_VALUE 0 osb->sb->s_fs_info 4096-ptr_max
PARAM_VALUE 0 osb->sys_root_inode->i_op->readlink 0,1728600404483375104,2832489546165891072,2874824064778891264,3069732422725099520,4516337085607264256
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 6842525382997094400
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
DATA_SOURCE 0 osb $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock

fs/ocfs2/alloc.c ocfs2_remove_btree_range() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 0 osb 4096-ptr_max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 548591281579888640
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
DATA_SOURCE 1 ref_blkno $7
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock

fs/ocfs2/move_extents.c ocfs2_defrag_extent() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 0 osb 4096-ptr_max
PARAM_VALUE 1 ref_blkno 1-u64max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 27162719799685120
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
UNITS 0 osb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/move_extents.c ocfs2_move_extent() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 0 osb 4096-ptr_max
PARAM_VALUE 1 ref_blkno 1-u64max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 2709626919560151040
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
UNITS 0 osb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_attach_refcount_tree() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 1 ref_blkno 1-u64max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 5845434706081230848
PARAM_VALUE 4 ref_bh 2095649675645849600
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
UNITS 0 osb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_create_reflink_node() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 8144126610011602944
PARAM_VALUE 4 ref_bh 8535690633434124288
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
UNITS 0 osb unit_byte
LOCK2 &inode->i_rwsem
LOCK2 &t_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_refcount_cow_hunk() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 3307192847286050816
PARAM_VALUE 4 ref_bh 5434125602938507264
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_reflink_remap_extent() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 1609059318062145536
PARAM_VALUE 4 ref_bh 8442188198692343808
PARAM_VALUE 4 *ref_bh 0,4096-ptr_max
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte

fs/ocfs2/refcounttree.c ocfs2_remove_refcount_tree() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 1 ref_blkno 1-u64max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 7496813177201823744
PARAM_VALUE 4 ref_bh 4343886845648031744
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &oi->ip_alloc_sem
HALF_LOCKED2 &oi->ip_xattr_sem

fs/ocfs2/refcounttree.c ocfs2_set_refcount_tree() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 1108845832143425536
PARAM_VALUE 4 ref_bh 3588909593020260352
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
DATA_SOURCE 1 ref_blkno $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/xattr.c ocfs2_prepare_refcount_xattr() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 3022212376670175232
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 7928707631666991104
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
BUF_SIZE 0 osb 1-s32max
DATA_SOURCE 3 ret_tree $5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/xattr.c ocfs2_reflink_xattrs() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 5791091626081873920
PARAM_VALUE 4 ref_bh 3557060886873124864
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
UNITS 0 osb unit_byte
LOCK2 &inode->i_rwsem
LOCK2 &new_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/xattr.c ocfs2_xattr_remove() -> ocfs2_lock_refcount_tree()

Type Parameter Key Value
PARAM_VALUE 0 osb 4096-ptr_max
PARAM_VALUE 2 rw 1
PARAM_VALUE 3 ret_tree 2241690254955794432
PARAM_VALUE 3 *ret_tree 0
PARAM_VALUE 4 ref_bh 7219589940985102336
PARAM_VALUE 4 *ref_bh 0
BUF_SIZE 0 osb 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 osb unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock
HALF_LOCKED2 &orphan_dir_inode->i_rwsem