Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/md/bcache/bset.c bch_dump_bucket() -> bset_sector_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_VALUE 0 b->set 4096-ptr_max
BUF_SIZE 0 b (-1),216
BUF_SIZE 0 b (-1),216
DATA_SOURCE 0 b $0
STR_LEN 0 b (-1),7,9
STR_LEN 0 b (-1),7,9
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &console_sem

drivers/md/bcache/btree.c bch_btree_node_read_done() -> bset_sector_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &b->c->verify_lock
HALF_LOCKED2 &b->io_mutex

drivers/md/bcache/btree.c bch_btree_node_read_done() -> bset_sector_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_COMPARE 1 i >= $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &b->c->verify_lock
HALF_LOCKED2 &b->io_mutex

drivers/md/bcache/btree.c bset_block_offset() -> bset_sector_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
DATA_SOURCE 1 i $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &b->c->verify_lock
HALF_LOCKED2 &b->io_mutex

drivers/md/bcache/btree.c do_btree_node_write() -> bset_sector_offset()

Type Parameter Key Value
PARAM_VALUE 0 b 4096-ptr_max
PARAM_VALUE 1 i 4096-ptr_max
DATA_SOURCE 1 i r btree_bset_last
RX_PATH
TASK_NOT_RUNNING
LOCK2 &b->io_mutex
HALF_LOCKED2 &b->lock
HALF_LOCKED2 &b->write_lock
HALF_LOCKED2 &c->bucket_lock
HALF_LOCKED2 b
TYPE_LOCK (struct btree)->io_mutex