Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/erofs/zdata.c z_erofs_pcluster_begin() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 1508504095595012112,2200510278346444816
PARAM_VALUE 2 need_kmap 0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 0-u64max[c]
UNITS 1 offset unit_byte
HALF_LOCKED2 &mapping->invalidate_lock

fs/erofs/zdata.c z_erofs_read_fragment() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 4525965267257245696
PARAM_VALUE 2 need_kmap 1
DATA_SOURCE 1 offset $4
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
HALF_LOCKED2 &mapping->invalidate_lock

fs/erofs/xattr.c erofs_getxattr_foreach() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 3815531349106003976,6878646170737971208
PARAM_VALUE 0 buf->base 1-u64max
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/erofs/xattr.c erofs_init_inode_xattrs() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 7158079796568915968
PARAM_VALUE 0 buf->base 1-u64max
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

fs/erofs/xattr.c erofs_xattr_copy_to_buffer() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 3815531349106003976,6878646170737971208
PARAM_VALUE 0 buf->base 1-u64max
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

fs/erofs/xattr.c erofs_xattr_iter_inline() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 3815531349106003976,6878646170737971208
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

fs/erofs/xattr.c erofs_xattr_iter_shared() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 3815531349106003976,6878646170737971208
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte

fs/erofs/super.c erofs_read_metadata() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 4449801555069575168,5739924917100974080
PARAM_VALUE 2 need_kmap 1
DATA_SOURCE 0 buf $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex
HALF_LOCKED2 &sb->s_umount

fs/erofs/super.c erofs_read_metadata() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 4449801555069575168,5739924917100974080
PARAM_VALUE 0 buf->base 1-u64max
PARAM_VALUE 2 need_kmap 1
DATA_SOURCE 0 buf $1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 buf->mapping->host->i_bytes
HALF_LOCKED2 &fc->uapi_mutex
HALF_LOCKED2 &sb->s_umount

fs/erofs/namei.c erofs_find_target_block() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 4564352702941814784
PARAM_VALUE 2 need_kmap 1
RX_PATH
TASK_NOT_RUNNING

fs/erofs/dir.c erofs_readdir() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 2015130369879851008
PARAM_VALUE 2 need_kmap 1
CAPPED_DATA 1 offset 1
CAPPED_DATA 1 offset 1
BIT_INFO 1 offset 0x0,0x7fffffffffffffff
BIT_INFO 1 offset 0x0,0x7fffffffffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 1 offset unit_byte
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/erofs/data.c erofs_read_metabuf() -> erofs_bread()

Type Parameter Key Value
PARAM_VALUE 0 buf 4096-ptr_max
PARAM_VALUE 2 need_kmap 1
DATA_SOURCE 0 buf $0
DATA_SOURCE 1 offset $2
STR_LEN 0 buf (-1),8
STR_LEN 0 buf (-1),8
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 offset 8-21474836487[c]
UNITS 1 offset unit_byte
HALF_LOCKED2 &sbi->devs->rwsem