Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

fs/exfat/dir.c exfat_free_benign_secondary_clusters() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 size s64min-(-1),1-s64max
BUF_SIZE 0 sbi 1-s32max
RX_PATH
TASK_NOT_RUNNING

fs/exfat/iomap.c __exfat_iomap_begin() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/exfat/namei.c __exfat_rename() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &source->i_rwsem
HALF_LOCKED2 &target->i_rwsem

fs/exfat/namei.c __exfat_rename() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &source->i_rwsem
HALF_LOCKED2 &target->i_rwsem

fs/exfat/namei.c exfat_find() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
CAPPED_DATA 0 sbi->num_clusters 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte
HALF_LOCKED2 &dir->i_rwsem

fs/exfat/namei.c exfat_rmdir() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size (-9223372036854775807)-(-4),0-s64max
UNITS 0 sbi unit_byte
LOCK2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &dentry->d_sb->s_vfs_rename_mutex
HALF_LOCKED2 &dir->d_inode->i_rwsem
HALF_LOCKED2 &dir->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/exfat/file.c __exfat_truncate() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
NOSPEC 1 size
NOSPEC 1 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size (-9223372036854775807)-(-2),0-s64max
UNITS 0 sbi unit_byte
HALF_LOCKED2 &sbi->s_lock

fs/exfat/file.c exfat_cont_expand() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 size 0-s64max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
DATA_SOURCE 1 size $1
NOSPEC 1 size
NOSPEC 1 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0-s64max[c]
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/exfat/balloc.c exfat_allocate_bitmap() -> exfat_bytes_to_cluster_round_up()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 size 0-s64max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi->vol_amap 8-67108864
CAPPED_DATA 0 sbi->map_sectors 1
CAPPED_DATA 1 size 1
CAPPED_DATA 1 size 1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 sbi->map_sectors
UNITS 0 sbi unit_byte
HALF_LOCKED2 &fc->uapi_mutex