Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

fs/btrfs/tree-log.c btrfs_check_ref_name_override() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 6860527101660901376
DATA_SOURCE 1 item r btrfs_lookup_dir_item
NOCHECK_CALL

fs/btrfs/tree-log.c check_item_in_log() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 4096-4294967396
PARAM_VALUE 2 cpu_key 8416680400007757824
NOCHECK_CALL

fs/btrfs/tree-log.c delete_conflicting_dir_entry() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 3486448451413893120
DATA_SOURCE 1 item $2
NOCHECK_CALL

fs/btrfs/tree-log.c drop_one_dir_item() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 3387684525079126016
DATA_SOURCE 1 item $2
NOCHECK_CALL

fs/btrfs/tree-log.c inode_in_dir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 6112218298492043264
DATA_SOURCE 1 item r btrfs_lookup_dir_index_item
NOCHECK_CALL

fs/btrfs/tree-log.c inode_in_dir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 6112218298492043264
DATA_SOURCE 1 item r btrfs_lookup_dir_item
NOCHECK_CALL

fs/btrfs/tree-log.c process_dir_items_leaf() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-4294967396
PARAM_VALUE 2 cpu_key 3468234416793964544
NOCHECK_CALL

fs/btrfs/tree-log.c replay_one_dir_item() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 4096-4294967396
PARAM_VALUE 2 cpu_key 8423524499609235456
NOCHECK_CALL

fs/btrfs/tree-log.c replay_one_name() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 4096-4294967396
PARAM_VALUE 2 cpu_key 8189854105350758400
DATA_SOURCE 1 item $1
NOCHECK_CALL

fs/btrfs/inode.c btrfs_inode_by_name() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 1684672619561615360
PARAM_VALUE 2 cpu_key->objectid 0
PARAM_VALUE 2 cpu_key->offset 0
PARAM_VALUE 2 cpu_key->type 0
DATA_SOURCE 1 item r btrfs_lookup_dir_item
DATA_SOURCE 2 cpu_key $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &fs_info->subvol_sem

fs/btrfs/inode.c btrfs_real_readdir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-4294967396
PARAM_VALUE 2 cpu_key 5585866609813250048
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/btrfs/inode.c btrfs_unlink_subvol() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 1278893544902303744
DATA_SOURCE 1 item r btrfs_lookup_dir_item
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &dentry->d_sb->s_vfs_rename_mutex
HALF_LOCKED2 &fs_info->subvol_sem

fs/btrfs/inode.c may_destroy_subvol() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 4326194043554873344
DATA_SOURCE 1 item r btrfs_lookup_dir_item
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fs_info->subvol_sem
HALF_LOCKED2 &dentry->d_inode->i_rwsem
HALF_LOCKED2 &dentry->d_lockref.lock
TYPE_LOCK (struct btrfs_fs_info)->subvol_sem

fs/btrfs/super.c get_default_subvol_objectid() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 3010586720317902848
DATA_SOURCE 1 item r btrfs_lookup_dir_item
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &fc->uapi_mutex

fs/btrfs/print-tree.c print_dir_item() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 0 eb->fs_info 4096-ptr_max
PARAM_VALUE 0 eb->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 eb->lock.first_waiter->type 0-1
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 7867047868633960448
BUF_SIZE 0 eb (-1),1-s32max
BUF_SIZE 0 eb (-1),1-s32max
DATA_SOURCE 0 eb $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 eb->len
NO_OVERFLOW_SIMPLE 0 eb->start
UNITS 1 item unit_byte
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &leaf->lock
HALF_LOCKED2 0 &eb->lock

fs/btrfs/tree-checker.c check_dir_item() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 0 eb->folios 4096-ptr_max
PARAM_VALUE 0 eb->fs_info 4096-ptr_max
PARAM_VALUE 0 eb->fs_info->csum_type 0-3
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 6170428834492719104
BUF_SIZE 0 eb (-1),1-s32max
BUF_SIZE 0 eb (-1),1-s32max
CAPPED_DATA 0 eb->start 1
DATA_SOURCE 0 eb $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 item unit_byte
HALF_LOCKED2 &pool->lock

fs/btrfs/send.c can_rmdir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-4294967396
PARAM_VALUE 2 cpu_key 3572068450737057792
NOCHECK_CALL

fs/btrfs/send.c can_rmdir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-4294967396
PARAM_VALUE 2 cpu_key 3572068450737057792
NOCHECK_CALL

fs/btrfs/send.c did_create_dir() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-4294967396
PARAM_VALUE 2 cpu_key 6066172268777144320
NOCHECK_CALL

fs/btrfs/send.c iterate_dir_item() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 0 eb 4096-ptr_max
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 2137589312198242304
NOCHECK_CALL
UNITS 1 item unit_byte

fs/btrfs/send.c lookup_dir_item_inode() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 3976204513840234496
DATA_SOURCE 1 item r btrfs_lookup_dir_item
NOCHECK_CALL

fs/btrfs/send.c wait_for_dest_dir_move() -> btrfs_dir_item_key_to_cpu()

Type Parameter Key Value
PARAM_VALUE 1 item 101-ptr_max
PARAM_VALUE 2 cpu_key 7502295236575096832
DATA_SOURCE 1 item r btrfs_match_dir_item_name
NOCHECK_CALL