Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/ordered-data.c alloc_ordered_extent() -> has_single_bit_set()

Type Parameter Key Value
PARAM_VALUE 0 n 0,128-1920
BIT_INFO 0 n 0x0,0x780
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/volumes.c alloc_profile_is_valid() -> has_single_bit_set()

Type Parameter Key Value
PARAM_VALUE 0 n 8-u64max
DATA_SOURCE 0 n $0 [m]
BIT_INFO 0 n 0x0,0xffffffffffffeff8
BIT_INFO 0 n 0x0,0xffffffffffffeff8
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 n 8-u64max[c]
HALF_LOCKED2 &fs_info->chunk_mutex

fs/btrfs/tree-checker.c btrfs_check_chunk_valid() -> has_single_bit_set()

Type Parameter Key Value
PARAM_VALUE 0 n 0,8-2040
BIT_INFO 0 n 0x0,0x7f8
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/tree-checker.c check_extent_item() -> has_single_bit_set()

Type Parameter Key Value
PARAM_VALUE 0 n 0-3
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

fs/btrfs/tree-checker.c check_inode_item() -> has_single_bit_set()

Type Parameter Key Value
PARAM_VALUE 0 n 0,4096-61440
BIT_INFO 0 n 0x0,0xf000
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock