Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

fs/ocfs2/dir.c ocfs2_do_extend_dir() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
DATA_SOURCE 0 sb $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte

fs/ocfs2/dir.c ocfs2_do_extend_dir() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 clusters 1
DATA_SOURCE 0 sb $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte

fs/ocfs2/dir.c ocfs2_do_extend_dir() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 clusters 1
DATA_SOURCE 0 sb $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte

fs/ocfs2/dir.c ocfs2_dx_dir_rebalance() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 clusters 1
CAPPED_DATA 0 sb 1
PREEMPT_ADD
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_rebalance() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 clusters 1
CAPPED_DATA 0 sb 1
PREEMPT_ADD
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_expand_inline_dx_root() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 clusters 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_expand_inline_dx_root() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 clusters 1
CAPPED_DATA 0 sb 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_extend_dir() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &orphan_dir_inode->i_rwsem

fs/ocfs2/suballoc.c _ocfs2_reclaim_suballoc_to_main() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &alloc_inode->i_rwsem

fs/ocfs2/suballoc.c ocfs2_block_group_alloc() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
LOCK2 &alloc_inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &orphan_dir_inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/ocfs2/namei.c ocfs2_create_symlink_data() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte

fs/ocfs2/alloc.c ocfs2_convert_inline_data_to_extents() -> ocfs2_clusters_to_bytes()

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

fs/ocfs2/alloc.c ocfs2_convert_inline_data_to_extents() -> ocfs2_clusters_to_bytes()

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

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

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 1 clusters $4
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters 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/move_extents.c __ocfs2_move_extents_range() -> ocfs2_clusters_to_bytes()

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
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

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

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

fs/ocfs2/file.c ocfs2_extend_allocation() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 clusters $2
NOSPEC 1 clusters
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-u32max[c]
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/file.c ocfs2_extend_allocation() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 clusters $2
NOSPEC 1 clusters
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-u32max[c]
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/file.c ocfs2_extend_allocation() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
DATA_SOURCE 1 clusters $2
NOSPEC 1 clusters
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-u32max[c]
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/ocfs2/file.c ocfs2_zero_extend_get_range() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
PARAM_VALUE 1 clusters 0-4294967294
CAPPED_DATA 1 clusters 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 0-4294967294[c]
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &oi->ip_alloc_sem

fs/ocfs2/file.c ocfs2_zero_extend_get_range() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
UNITS 1 clusters unit_byte
HALF_LOCKED2 &oi->ip_alloc_sem

fs/ocfs2/refcounttree.c ocfs2_add_refcounted_extent() -> ocfs2_clusters_to_bytes()

Type Parameter Key Value
DATA_SOURCE 1 clusters $6
NOSPEC 1 clusters
NOSPEC 1 clusters
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-s32max[c]
UNITS 0 sb unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &inode->i_rwsem

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 0-u32max[c]
UNITS 0 sb unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
CAPPED_DATA 1 clusters 1
NOSPEC 1 clusters
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-s32max[c]
UNITS 0 sb unit_byte

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

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 0 sb->s_fs_info 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 clusters 1-4294967294[c][u]
UNITS 0 sb unit_byte