Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

fs/ocfs2/dir.c ocfs2_block_to_cluster_start() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
CAPPED_DATA 0 sb 1
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 blocks $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &orphan_dir_inode->i_rwsem

fs/ocfs2/dir.c ocfs2_dx_dir_truncate() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock
HALF_LOCKED2 &orphan_dir_inode->i_rwsem

fs/ocfs2/suballoc.c _ocfs2_free_clusters() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
DATA_SOURCE 1 blocks $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &bitmap_inode->i_rwsem

fs/ocfs2/suballoc.c ocfs2_block_to_cluster_group() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
DATA_SOURCE 1 blocks $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/suballoc.c ocfs2_block_to_cluster_group() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/suballoc.c ocfs2_cluster_group_search() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &orphan_dir_inode->i_rwsem

fs/ocfs2/suballoc.c ocfs2_desc_bitmap_to_cluster_off() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 1 blocks $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &oi->ip_alloc_sem
HALF_LOCKED2 &tl_inode->i_rwsem

fs/ocfs2/resize.c ocfs2_calc_new_backup_super() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 1 blocks r ocfs2_backup_super_blkno
CAPABLE 0 24
UNITS 0 sb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/resize.c ocfs2_calc_new_backup_super() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
CAPPED_DATA 1 blocks 1
CAPPED_DATA 1 blocks 1
CAPABLE 0 24
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/resize.c ocfs2_verify_group_and_input() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
CAPABLE 0 24
USER_DATA 1 blocks 0-u64max
UNITS 0 sb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/resize.c update_backups() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
DATA_SOURCE 1 blocks r ocfs2_backup_super_blkno
CAPABLE 0 24
UNITS 0 sb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/extent_map.c ocfs2_extent_map_get_blocks() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 blocks $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
USER_DATA 1 blocks 0-9223372036854775807
UNITS 0 sb unit_byte
UNITS 1 blocks unit_array_size
HALF_LOCKED2 &dquot->dq_lock

fs/ocfs2/extent_map.c ocfs2_extent_map_insert_rec() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
STR_LEN 0 sb (-1),8
STR_LEN 0 sb (-1),8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte

fs/ocfs2/extent_map.c ocfs2_relative_extent_offsets() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 blocks 1-u64max
CAPPED_DATA 0 sb 1
DATA_SOURCE 0 sb $0
STR_LEN 0 sb (-1),8
STR_LEN 0 sb (-1),8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &t_inode->i_rwsem

fs/ocfs2/extent_map.c ocfs2_xattr_get_clusters() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 1 blocks 1-u64max
BUF_SIZE 0 sb (-1),2816
BUF_SIZE 0 sb (-1),2816
STR_LEN 0 sb (-1),8
STR_LEN 0 sb (-1),8
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 sb->s_flags 0-u64max[c]
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize
NO_OVERFLOW_SIMPLE 0 sb->s_blocksize_bits
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 blocks 1-u64max
DATA_SOURCE 1 blocks r ocfs2_clusters_to_blocks
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
LOCK2 &tl_inode->i_rwsem
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/alloc.c ocfs2_trim_mainbm() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 blocks r ocfs2_which_cluster_group
CAPABLE 0 21
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
LOCK2 &main_bm_inode->i_rwsem
LOCK2 &osb->obs_trim_fs_mutex
TYPE_LOCK (struct inode)->i_rwsem
TYPE_LOCK (struct ocfs2_super)->obs_trim_fs_mutex

fs/ocfs2/alloc.c ocfs2_truncate_log_append() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
DATA_SOURCE 1 blocks $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
LOCK2 &tl_inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/move_extents.c __ocfs2_move_extent() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 1 blocks 1-u64max
DATA_SOURCE 1 blocks r ocfs2_clusters_to_blocks
UNITS 0 sb unit_byte
LOCK2 &inode->i_rwsem
LOCK2 &tl_inode->i_rwsem
HALF_LOCKED2 &gb_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/move_extents.c __ocfs2_move_extents_range() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
USER_DATA 1 blocks 0-u64max
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/move_extents.c ocfs2_block_to_cluster_start() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 0 sb $0
DATA_SOURCE 1 blocks $1
USER_DATA 1 blocks 0-u64max
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
USER_DATA 1 blocks 0-u64max
UNITS 0 sb unit_byte
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/move_extents.c ocfs2_probe_alloc_group() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
UNITS 0 sb unit_byte
UNITS 1 blocks unit_byte
LOCK2 &gb_inode->i_rwsem
LOCK2 &inode->i_rwsem
LOCK2 &tl_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/refcounttree.c ocfs2_prepare_refcount_change_for_del() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 blocks $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/xattr.c __ocfs2_remove_xattr_range() -> ocfs2_blocks_to_clusters()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 blocks r ocfs2_clusters_to_blocks
STR_LEN 0 sb (-1)
STR_LEN 0 sb (-1)
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &(inode->i_sb)->s_fs_info->nfs_sync_rwlock