Defined in 2 files as a function:

Referenced in 5 files:

Smatch caller information:

fs/btrfs/dir-item.c btrfs_insert_dir_item() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 3870990232656240640
PARAM_VALUE 1 cpu_key 2992327462540214272
PARAM_VALUE 1 cpu_key->objectid 0-255,257-u64max
PARAM_VALUE 1 cpu_key->offset 0
PARAM_VALUE 1 cpu_key->type 1
DATA_SOURCE 1 cpu_key $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/btrfs/dir-item.c btrfs_insert_xattr_item() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 3388247189990977536
PARAM_VALUE 1 cpu_key 8211630459438702592
MEM_ZERO 1 cpu_key
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/btrfs/volumes.c btrfs_add_system_chunk() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 4564819782669418496
PARAM_VALUE 1 cpu_key 5176197536759595008
PARAM_VALUE 1 cpu_key->objectid 256
PARAM_VALUE 1 cpu_key->offset 0-18446744073709551614
PARAM_VALUE 1 cpu_key->type 228
DATA_SOURCE 1 cpu_key $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fs_info->chunk_mutex
TYPE_LOCK (struct btrfs_fs_info)->chunk_mutex

fs/btrfs/ioctl.c btrfs_ioctl_default_subvol() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 1785867407705321472
PARAM_VALUE 1 cpu_key 4096-ptr_max
CAPABLE 0 21
NOCHECK_CALL

fs/btrfs/extent-tree.c btrfs_drop_snapshot() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 4096-ptr_max
PARAM_VALUE 1 cpu_key 4096-ptr_max
NOCHECK_CALL
HALF_LOCKED2 &fs_info->cleaner_mutex

fs/btrfs/ctree.c btrfs_set_item_key_safe() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 5198147627243270144
PARAM_VALUE 1 cpu_key 21400287729647616,2942862594178596864,5177710261729411072,5518257780840751104,5963057335917146112
PARAM_VALUE 1 cpu_key->type 108,128,234-236
CAPPED_DATA 1 cpu_key->type 1
DATA_SOURCE 1 cpu_key $2
NOSPEC 1 cpu_key->offset
HARD_MAX 1 cpu_key->type 236
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 cpu_key->offset 0-s32max[c]
NO_OVERFLOW_SIMPLE 1 cpu_key->offset
HALF_LOCKED2 &fs_info->remap_mutex

fs/btrfs/ctree.c setup_items_for_insert() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 6246214486815039488
PARAM_VALUE 1 cpu_key 4096-ptr_max
BUF_SIZE 1 cpu_key (-759),(-1)
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/btrfs/ctree.c setup_items_for_insert() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 6246214486815039488
PARAM_VALUE 1 cpu_key 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/btrfs/ctree.c split_item() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 8501030909769383936
PARAM_VALUE 1 cpu_key 1145262653013671936,5518257780840751104
PARAM_VALUE 1 cpu_key->objectid 0,18446744073709551606
PARAM_VALUE 1 cpu_key->offset 1-18446744073709551614
PARAM_VALUE 1 cpu_key->type 128
DATA_SOURCE 1 cpu_key $2
HARD_MAX 1 cpu_key->objectid 18446744073709551606
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

fs/btrfs/ctree.c split_leaf() -> btrfs_cpu_key_to_disk()

Type Parameter Key Value
PARAM_VALUE 0 disk_key 1753852253961891840
DATA_SOURCE 1 cpu_key $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL