Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/ocfs2/alloc.c ocfs2_append_rec_to_path() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth s32min-(-1),1-s32max
PARAM_VALUE 2 cpos 7112119571051839488
BUF_SIZE 1 path 96
DATA_SOURCE 1 path $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/alloc.c ocfs2_figure_merge_contig_type() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth 1-s32max
PARAM_VALUE 2 cpos 44296804141649920
BUF_SIZE 1 path 96
DATA_SOURCE 0 sb r ocfs2_metadata_cache_get_super
DATA_SOURCE 1 path $1
FUZZY_MAX 1 path->p_tree_depth 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &tl_inode->i_rwsem

fs/ocfs2/alloc.c ocfs2_get_left_path() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth s32min-(-1),1-s32max
PARAM_VALUE 2 cpos 1769328235357294592
DATA_SOURCE 1 path $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &osb->journal->j_trans_barrier
HALF_LOCKED2 &tl_inode->i_rwsem

fs/ocfs2/alloc.c ocfs2_remove_rightmost_path() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 2 cpos 5175479684675117056
BUF_SIZE 1 path (-1),96
BUF_SIZE 1 path (-1),96
DATA_SOURCE 1 path $2
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/alloc.c ocfs2_rotate_tree_right() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 2 cpos 5481873593993437184
BUF_SIZE 1 path 96
DATA_SOURCE 0 sb r ocfs2_metadata_cache_get_super
DATA_SOURCE 1 path $4
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/alloc.c ocfs2_rotate_tree_right() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth s32min-(-1),1-s32max
PARAM_VALUE 2 cpos 5481873593993437184
PARAM_VALUE 2 *cpos 1-4294967294
BUF_SIZE 1 path 96
CAPPED_DATA 1 path->p_root_access 1
DATA_SOURCE 0 sb r ocfs2_metadata_cache_get_super
DATA_SOURCE 1 path $4
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/alloc.c ocfs2_truncate_rec() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth s32min-(-1),1-s32max
PARAM_VALUE 2 cpos 6015065071168069632
BUF_SIZE 1 path 96
DATA_SOURCE 0 sb r ocfs2_metadata_cache_get_super
DATA_SOURCE 1 path $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tl_inode->i_rwsem

fs/ocfs2/file.c ocfs2_remove_inode_range() -> ocfs2_find_cpos_for_left_leaf()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_cop->empty_dir 0,86,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144
PARAM_VALUE 0 sb->s_cop->get_context 0,706,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416
PARAM_VALUE 0 sb->s_cop->set_context 0,67,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112
PARAM_VALUE 0 sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
PARAM_VALUE 1 path 4096-ptr_max
PARAM_VALUE 1 path->p_node 4096-ptr_max
PARAM_VALUE 1 path->p_tree_depth s32min-(-1),1-s32max
PARAM_VALUE 2 cpos 4407091811333308416
BUF_SIZE 1 path 96
DATA_SOURCE 1 path r ocfs2_new_path_from_et
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 *cpos 0-u32max[c]
UNITS 0 sb unit_byte
USER_PTR 2 cpos
HALF_LOCKED2 &inode->i_rwsem