Defined in 1 files as a function:
Referenced in 6 files:
- drivers/md/bcache/alloc.c, line 633
- drivers/md/bcache/btree.c
- drivers/md/bcache/extents.c
- drivers/md/bcache/movinggc.c
- drivers/md/bcache/request.c, line 515
- drivers/md/bcache/writeback.c, line 502
Smatch caller information:
drivers/md/bcache/writeback.c read_dirty() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 24,4096-ptr_max |
| PARAM_VALUE | 2 | i | 0 |
| CAPPED_DATA | 0 | c->root | 1 |
drivers/md/bcache/movinggc.c read_moving() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->cache | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| PARAM_VALUE | 2 | i | 0 |
| 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 | 0 | &c->gc_stats | |
| HALF_LOCKED2 | 0 | &c->moving_in_flight |
drivers/md/bcache/movinggc.c read_moving_endio() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| PARAM_VALUE | 2 | i | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/bcache/request.c bch_cache_read_endio() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| PARAM_VALUE | 2 | i | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/bcache/alloc.c bch_alloc_sectors() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->cache | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 0 | c | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &c->data_bucket_lock | |
| HALF_LOCKED2 | &b->io_mutex | ||
| HALF_LOCKED2 | &dc->in_flight | ||
| TYPE_LOCK | (struct cache_set)->data_bucket_lock |
drivers/md/bcache/extents.c bch_btree_ptr_bad() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c->cache | 1-u64max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 1 | k | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/bcache/extents.c bch_extent_bad() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 1 | k | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/bcache/extents.c bch_ptr_status() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->cache | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| BUF_SIZE | 1 | k | (-1),16 |
| BUF_SIZE | 1 | k | (-1),16 |
| CAPPED_DATA | 1 | k | 1 |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 0 | c | $0 |
| DATA_SOURCE | 1 | k | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &console_sem |
drivers/md/bcache/btree.c __bch_btree_mark_key() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->cache | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 1 | k | 1 |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 0 | c | $0 |
| DATA_SOURCE | 1 | k | $2 |
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | c->bio_meta.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bvec_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->fill_iter.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->nr_uuids | |
| NO_OVERFLOW_SIMPLE | 0 | c->search.min_nr | |
| HALF_LOCKED2 | b |
drivers/md/bcache/btree.c __bch_btree_mark_key() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 4096-ptr_max |
| PARAM_VALUE | 0 | c->cache | 4096-ptr_max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 1 | k | 1 |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 0 | c | $0 |
| DATA_SOURCE | 1 | k | $2 |
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | c->bio_meta.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bvec_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->fill_iter.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->nr_uuids | |
| NO_OVERFLOW_SIMPLE | 0 | c->search.min_nr | |
| HALF_LOCKED2 | b |
drivers/md/bcache/btree.c bch_initial_mark_key() -> ptr_stale()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c->cache | 1-u64max |
| PARAM_VALUE | 1 | k | 4096-ptr_max |
| CAPPED_DATA | 1 | k | 1 |
| CAPPED_DATA | 2 | i | 1 |
| DATA_SOURCE | 0 | c | $0 |
| DATA_SOURCE | 1 | k | $2 |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_meta.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bio_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->bio_split.bvec_pool.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->fill_iter.min_nr | |
| NO_OVERFLOW_SIMPLE | 0 | c->nr_uuids | |
| NO_OVERFLOW_SIMPLE | 0 | c->search.min_nr |