Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/md/bcache/alloc.c __bch_bucket_free() -> bch_update_bucket_in_use()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 0 c->nbuckets 1-u64max
PARAM_VALUE 1 stats 4096-ptr_max
PARAM_COMPARE 0 c->avail_nbuckets <= $0->nbuckets
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &c->bucket_lock
HALF_LOCKED2 0 &c->bucket_lock
TYPE_LOCK (struct cache_set)->bucket_lock

drivers/md/bcache/alloc.c bch_bucket_alloc() -> bch_update_bucket_in_use()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 stats 4096-ptr_max
CAPPED_DATA 0 &c->bucket_lock 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &c->bucket_lock
HALF_LOCKED2 0 &c->bucket_lock
TYPE_LOCK (struct cache_set)->bucket_lock

drivers/md/bcache/btree.c bch_btree_gc() -> bch_update_bucket_in_use()

Type Parameter Key Value
PARAM_VALUE 0 c 4096-ptr_max
PARAM_VALUE 1 stats 8984127086129754112
BUF_SIZE 0 c 128
BUF_SIZE 0 c 128
CAPPED_DATA 0 c->cache->alloc_thread 1
CAPPED_DATA 0 c->devices_max_used 1
CAPPED_DATA 0 c->root 1
DATA_SOURCE 0 c $0
MEM_ZERO 1 stats
NOCHECK_CALL