Defined in 1 files as a function:
Referenced in 5 files:
Smatch caller information:
fs/exfat/dir.c exfat_find_location() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | size | 0,32-4294967264 |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| DATA_SOURCE | 1 | size | r exfat_dentries_to_bytes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/exfat/dir.c exfat_find_location() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 0,32-4294967264 |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| DATA_SOURCE | 1 | size | r exfat_dentries_to_bytes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
fs/exfat/dir.c exfat_readdir() -> exfat_bytes_to_cluster()
| 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 |
| LOCK2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/exfat/inode.c exfat_map_cluster() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | size | s64min-(-512),0,512-s64max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| LOCK2 | &sbi->s_lock | ||
| TYPE_LOCK | (struct exfat_sb_info)->s_lock |
fs/exfat/iomap.c __exfat_iomap_begin() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| DATA_SOURCE | 1 | size | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | size | unit_byte |
fs/exfat/iomap.c __exfat_iomap_begin() -> exfat_bytes_to_cluster()
| 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->s_lock | 1 |
| DATA_SOURCE | 1 | size | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| UNITS | 1 | size | unit_byte |
| LOCK2 | 0 | &sbi->s_lock | |
| TYPE_LOCK | (struct exfat_sb_info)->s_lock |
fs/exfat/namei.c exfat_find() -> exfat_bytes_to_cluster()
| 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 |
| NO_OVERFLOW_SIMPLE | 1 | size | |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &dir->i_rwsem |
fs/exfat/namei.c exfat_find() -> exfat_bytes_to_cluster()
| 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_find_empty_entry() -> exfat_bytes_to_cluster()
| 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 |
| HALF_LOCKED2 | &sbi->s_lock |
fs/exfat/file.c __exfat_truncate() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sbi | 4096-ptr_max |
| PARAM_VALUE | 1 | size | s64min-(-512),0,512-s64max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | size | 0,512-9223372036854775296[c] |
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &sbi->s_lock |
fs/exfat/file.c exfat_cont_expand() -> exfat_bytes_to_cluster()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | size | s64min-(-512),0,512-s64max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| BUF_SIZE | 0 | sbi | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | sbi | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem |