Defined in 1 files as a function:
Referenced in 9 files:
- fs/ocfs2/alloc.c
- fs/ocfs2/aops.c
- fs/ocfs2/dir.c, line 2897
- fs/ocfs2/extent_map.c
- fs/ocfs2/file.c
- fs/ocfs2/move_extents.c, line 806
- fs/ocfs2/ocfs2.h, line 853
- fs/ocfs2/refcounttree.c
- fs/ocfs2/xattr.c
Smatch caller information:
fs/ocfs2/extent_map.c ocfs2_fiemap() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| CAPPED_DATA | 0 | sb->s_maxbytes | 1 |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
fs/ocfs2/extent_map.c ocfs2_overwrite_io() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/extent_map.c ocfs2_seek_data_hole_offset() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 0-9223372036854775807,9223372036854775809-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/alloc.c ocfs2_commit_truncate() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| NOSPEC | 1 | bytes | |
| NOSPEC | 1 | bytes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 0-9223372036854775807 |
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &(inode->i_sb)->s_fs_info->nfs_sync_rwlock |
fs/ocfs2/alloc.c ocfs2_xattr_tree_fill_max_leaf_clusters() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bytes | 65536 |
| DATA_SOURCE | 0 | sb | r ocfs2_metadata_cache_get_super |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ocfs2/move_extents.c __ocfs2_move_extents_range() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 1 | bytes | 1 |
| CAPPED_DATA | 1 | bytes | 1 |
| NOSPEC | 1 | bytes | |
| NOSPEC | 1 | bytes | |
| USER_DATA | 1 | bytes | 0-s32max[c] |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/file.c ocfs2_align_bytes_to_clusters() -> ocfs2_clusters_for_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 | 0 | sb | $0 |
| DATA_SOURCE | 1 | bytes | $1 |
| NOSPEC | 1 | bytes | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 0-9223372036854775807[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/file.c ocfs2_allocate_unwritten_extents() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/file.c ocfs2_check_range_for_refcount() -> ocfs2_clusters_for_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 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/file.c ocfs2_extend_no_holes() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | bytes | $2 |
| NOSPEC | 1 | bytes | |
| NOSPEC | 1 | bytes | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 1-9223372036854775807[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &dquot->dq_lock | ||
| HALF_LOCKED2 | &info->dqi_gqinode->i_rwsem | ||
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/ocfs2/file.c ocfs2_prepare_inode_for_write() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/file.c ocfs2_remove_inode_range() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | bytes | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 1-9223372036854775807[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/file.c ocfs2_zero_extend_get_range() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 1-u64max |
| DATA_SOURCE | 1 | bytes | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 1-u64max |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/ocfs2/aops.c ocfs2_dio_wr_get_block() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| CAPPED_DATA | 0 | sb | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/aops.c ocfs2_dio_wr_get_block() -> ocfs2_clusters_for_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 | bytes | 0-9223372036854775806,9223372036854775808-u64max |
| CAPPED_DATA | 0 | sb | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
fs/ocfs2/aops.c ocfs2_expand_nonsparse_inode() -> ocfs2_clusters_for_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 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 0-9223372036854775806 |
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/ocfs2/refcounttree.c ocfs2_attach_refcount_tree() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/refcounttree.c ocfs2_cow_contig_clusters() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 1048576 |
| BUF_SIZE | 0 | sb | (-1),80,2816 |
| BUF_SIZE | 0 | sb | (-1),80,2816 |
| 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] |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize_bits | |
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/refcounttree.c ocfs2_duplicate_extent_list() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| UNITS | 0 | sb | unit_byte |
| LOCK2 | &inode->i_rwsem | ||
| LOCK2 | &t_inode->i_rwsem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/ocfs2/refcounttree.c ocfs2_reflink_remap_extent() -> ocfs2_clusters_for_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 | bytes | 0-9223372036854775806,9223372036854775808-u64max |
| CAPPED_DATA | 1 | bytes | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
fs/ocfs2/xattr.c __ocfs2_xattr_set_value_outside() -> ocfs2_clusters_for_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 | bytes | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 1 | bytes | $4 |
| STR_LEN | 0 | sb | (-1) |
| STR_LEN | 0 | sb | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 81-65536 |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/ocfs2/xattr.c ocfs2_calc_security_init() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 81-u64max |
| FUZZY_MAX | 1 | bytes | 81 |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
fs/ocfs2/xattr.c ocfs2_calc_xattr_init() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 81-u64max |
| FUZZY_MAX | 1 | bytes | 81 |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
fs/ocfs2/xattr.c ocfs2_calc_xattr_init() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 81-s32max |
| UNITS | 0 | sb | unit_byte |
fs/ocfs2/xattr.c ocfs2_calc_xattr_init() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 81-s32max |
| UNITS | 0 | sb | unit_byte |
fs/ocfs2/xattr.c ocfs2_calc_xattr_set_need() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| BUF_SIZE | 0 | sb | (-1),2816 |
| BUF_SIZE | 0 | sb | (-1),2816 |
| STR_LEN | 0 | sb | (-1),8 |
| STR_LEN | 0 | sb | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sb->s_flags | 0-2147552256[c] |
| USER_DATA | 1 | bytes | 0-65536 |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize_bits | |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/xattr.c ocfs2_calc_xattr_set_need() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 0 | sb->s_fs_info | 4096-ptr_max |
| BUF_SIZE | 0 | sb | (-1),2816 |
| BUF_SIZE | 0 | sb | (-1),2816 |
| STR_LEN | 0 | sb | (-1),8 |
| STR_LEN | 0 | sb | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | sb->s_flags | 0-2147552256[c] |
| USER_DATA | 1 | bytes | 0-17179869176 |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize | |
| NO_OVERFLOW_SIMPLE | 0 | sb->s_blocksize_bits | |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ocfs2/xattr.c ocfs2_value_metas_in_xattr_header() -> ocfs2_clusters_for_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 | bytes | 65536 |
| DATA_SOURCE | 0 | sb | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sb | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &new_inode->i_rwsem | ||
| HALF_LOCKED2 | &orphan_dir_inode->i_rwsem |
fs/ocfs2/xattr.c ocfs2_xattr_value_truncate() -> ocfs2_clusters_for_bytes()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | bytes | 0-s32max,18446744071562067968-u64max |
| CAPPED_DATA | 1 | bytes | 1 |
| DATA_SOURCE | 1 | bytes | $2 |
| STR_LEN | 0 | sb | (-1) |
| STR_LEN | 0 | sb | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | bytes | 82-65536[c] |
| UNITS | 0 | sb | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &(inode->i_sb)->s_fs_info->nfs_sync_rwlock |