Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

fs/ntfs3/frecord.c ni_decompress_file() -> bytes_to_cluster()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte

fs/ntfs3/frecord.c ni_decompress_file() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/ntfs3/frecord.c ni_expand_mft_list() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
UNITS 0 sbi unit_byte

fs/ntfs3/attrib.c attr_is_frame_compressed() -> bytes_to_cluster()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte
LOCK2 &ni->file.run_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &ni->base->ni_lock
TYPE_LOCK (struct ntfs_inode)->file.run_lock

fs/ntfs3/attrib.c attr_make_nonresident() -> bytes_to_cluster()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &ni->base->ni_lock
HALF_LOCKED2 &ni->file.run_lock

fs/ntfs3/fslog.c attr_create_nonres_log() -> bytes_to_cluster()

Type Parameter Key Value
DATA_SOURCE 0 sbi $0
DATA_SOURCE 1 size $2

fs/ntfs3/inode.c ntfs_create_inode() -> 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->record_size 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &dir_ni->base->ni_lock

fs/ntfs3/inode.c ntfs_iomap_begin() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/ntfs3/inode.c ntfs_read_mft() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 size 0-12000000
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
UNITS 0 sbi unit_byte

fs/ntfs3/bitmap.c ntfs_trim_fs() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 size 0-u32max
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
CAPABLE 0 21
USER_DATA 1 size 1-u32max
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/ntfs3/bitmap.c ntfs_trim_fs() -> 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
DATA_SOURCE 0 sbi $0
CAPABLE 0 21
USER_DATA 1 size 0-u64max
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/ntfs3/bitmap.c ntfs_trim_fs() -> 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
DATA_SOURCE 0 sbi $0
CAPABLE 0 21
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte

fs/ntfs3/fsntfs.c ntfs_check_free_space() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
DATA_SOURCE 0 sbi $0

fs/ntfs3/fsntfs.c ntfs_refresh_zone() -> bytes_to_cluster()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
BUF_SIZE 0 sbi (-1),1-s32max
BUF_SIZE 0 sbi (-1),1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &ni->file.run_lock
HALF_LOCKED2 &wnd->rw_lock
HALF_LOCKED2 lock
HALF_LOCKED2 0 &sbi->used.bitmap.rw_lock
TYPE_LOCK (struct wnd_bitmap)->rw_lock

fs/ntfs3/file.c ntfs_fallocate() -> 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
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/ntfs3/file.c ntfs_file_mmap_prepare() -> 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 1 size 1
CAPPED_DATA 1 size 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0,4096-s32max[c]
UNITS 0 sbi unit_byte
UNITS 1 size unit_byte