Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/f2fs/segment.c __f2fs_commit_atomic_write() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 2401935971187396608
PARAM_VALUE 0 dn->inode 4096-ptr_max
MEM_ZERO 0 dn
LOCK2 &inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/recovery.c check_index_in_prev_nodes() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 8964673850683723776
PARAM_VALUE 0 dn->ofs_in_node 0-u16max
LOCK2 &sbi->cp_global_sem.internal_rwsem
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem

fs/f2fs/recovery.c do_recover_data() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 6640892263497801728
MEM_ZERO 0 dn
LOCK2 &sbi->cp_global_sem.internal_rwsem
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem

fs/f2fs/data.c __allocate_data_block() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 4096-ptr_max
PARAM_VALUE 0 dn->inode 4096-ptr_max
DATA_SOURCE 0 dn $0

fs/f2fs/data.c f2fs_bmap_compress() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 265126853782941696
PARAM_VALUE 0 dn->inode 4096-ptr_max
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 dn->ofs_in_node 0-u32max[u]
HALF_LOCKED2 &inode->i_rwsem

fs/f2fs/data.c f2fs_reserve_new_blocks() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 1776166149423665152,2877915006866423808,5176109026535841792,6078007948475510784,6209035082583699456,6640892263497801728,7818540088687124480,8264148285849141248
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->node_folio 4096-ptr_max
DATA_SOURCE 0 dn $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 dn->inode->i_bytes
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &sbi->cp_rwsem.internal_rwsem

fs/f2fs/file.c __clone_blkaddrs() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 265096310918152192
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dst_inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
LOCK2 &src_inode->i_rwsem
HALF_LOCKED2 &dst_inode->i_mapping->invalidate_lock
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &src_inode->i_mapping->invalidate_lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c __found_offset() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 6800923120338161664
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->ofs_in_node 0-4294967294
DATA_SOURCE 0 dn $1
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c __read_out_blkaddrs() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 5108318825836990464
PARAM_VALUE 0 dn->inode 4096-ptr_max
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dst_inode->i_rwsem
LOCK2 &inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 &dst_inode->i_mapping->invalidate_lock
HALF_LOCKED2 &inode->i_mapping->invalidate_lock
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c f2fs_do_zero_range() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 7818540088687124480
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->ofs_in_node 0-s32max
DATA_SOURCE 0 dn $0
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
LOCK2 &mapping->invalidate_lock
LOCK2 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c f2fs_do_zero_range() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 7818540088687124480
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->node_folio 0,4096-ptr_max
DATA_SOURCE 0 dn $0
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
LOCK2 &mapping->invalidate_lock
LOCK2 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c f2fs_sec_trim_file() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 1790703837172531200
PARAM_VALUE 0 dn->inode 4096-ptr_max
MEM_ZERO 0 dn
LOCK2 &inode->i_rwsem
LOCK2 &mapping->invalidate_lock
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c f2fs_seek_block() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 6800923120338161664
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->ofs_in_node 0-4294967294
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c release_compress_blocks() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 4157468947738861568
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->node_folio 0,4096-ptr_max
DATA_SOURCE 0 dn $0
MEM_ZERO 0 dn
NO_OVERFLOW_SIMPLE 0 dn->inode->i_bytes
LOCK2 &inode->i_mapping->invalidate_lock
LOCK2 &inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/file.c reserve_compress_blocks() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 6881996813744070656
PARAM_VALUE 0 dn->inode 4096-ptr_max
PARAM_VALUE 0 dn->node_folio 0,4096-ptr_max
DATA_SOURCE 0 dn $0
MEM_ZERO 0 dn
NO_OVERFLOW_SIMPLE 0 dn->inode->i_bytes
LOCK2 &inode->i_mapping->invalidate_lock
LOCK2 &inode->i_rwsem
LOCK2 &sbi->cp_rwsem.internal_rwsem
TYPE_LOCK (struct address_space)->invalidate_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/f2fs/node.c f2fs_get_dnode_of_data() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 4096-ptr_max
PARAM_VALUE 0 dn->inode 4096-ptr_max
DATA_SOURCE 0 dn $0
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_mapping->invalidate_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &sbi->cp_global_sem.internal_rwsem
HALF_LOCKED2 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 &sbi->gc_lock.internal_rwsem
HALF_LOCKED2 &src_inode->i_rwsem

fs/f2fs/compress.c f2fs_write_compressed_pages() -> f2fs_data_blkaddr()

Type Parameter Key Value
PARAM_VALUE 0 dn 7078699258320928768
PARAM_VALUE 0 dn->inode 4096-ptr_max
MEM_ZERO 0 dn
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mapping->invalidate_lock
HALF_LOCKED2 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 &sbi->node_write.internal_rwsem
HALF_LOCKED2 &sbi->writepages
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem