cblock 1218 drivers/md/dm-cache-metadata.c static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) cblock 1224 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), cblock 1233 drivers/md/dm-cache-metadata.c int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) cblock 1238 drivers/md/dm-cache-metadata.c r = __remove(cmd, cblock); cblock 1245 drivers/md/dm-cache-metadata.c dm_cblock_t cblock, dm_oblock_t oblock) cblock 1251 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), cblock 1261 drivers/md/dm-cache-metadata.c dm_cblock_t cblock, dm_oblock_t oblock) cblock 1266 drivers/md/dm-cache-metadata.c r = __insert(cmd, cblock, oblock); cblock 1506 drivers/md/dm-cache-metadata.c static int __dump_mapping(void *context, uint64_t cblock, void *leaf) cblock 1542 drivers/md/dm-cache-metadata.c static int __dirty(struct dm_cache_metadata *cmd, dm_cblock_t cblock, bool dirty) cblock 1549 drivers/md/dm-cache-metadata.c r = dm_array_get_value(&cmd->info, cmd->root, from_cblock(cblock), &value); cblock 1562 drivers/md/dm-cache-metadata.c r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), cblock 86 drivers/md/dm-cache-metadata.h int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock); cblock 87 drivers/md/dm-cache-metadata.h int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock, dm_oblock_t oblock); cblock 91 drivers/md/dm-cache-metadata.h dm_cblock_t cblock, bool dirty, cblock 15 drivers/md/dm-cache-policy-internal.h static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, cblock 18 drivers/md/dm-cache-policy-internal.h return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); cblock 22 drivers/md/dm-cache-policy-internal.h dm_oblock_t oblock, dm_cblock_t *cblock, cblock 28 drivers/md/dm-cache-policy-internal.h return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); cblock 31 drivers/md/dm-cache-policy-internal.h return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); cblock 47 drivers/md/dm-cache-policy-internal.h static inline void policy_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 49 drivers/md/dm-cache-policy-internal.h p->set_dirty(p, cblock); cblock 52 drivers/md/dm-cache-policy-internal.h static inline void policy_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 54 drivers/md/dm-cache-policy-internal.h p->clear_dirty(p, cblock); cblock 58 drivers/md/dm-cache-policy-internal.h dm_oblock_t oblock, dm_cblock_t cblock, cblock 61 drivers/md/dm-cache-policy-internal.h return p->load_mapping(p, oblock, cblock, dirty, hint, hint_valid); cblock 65 drivers/md/dm-cache-policy-internal.h dm_cblock_t cblock) cblock 67 drivers/md/dm-cache-policy-internal.h return p->invalidate_mapping(p, cblock); cblock 71 drivers/md/dm-cache-policy-internal.h dm_cblock_t cblock) cblock 73 drivers/md/dm-cache-policy-internal.h return p->get_hint ? p->get_hint(p, cblock) : 0; cblock 1187 drivers/md/dm-cache-policy-smq.c work.cblock = infer_cblock(mq, e); cblock 1218 drivers/md/dm-cache-policy-smq.c work.cblock = infer_cblock(mq, e); cblock 1258 drivers/md/dm-cache-policy-smq.c work.cblock = infer_cblock(mq, e); cblock 1365 drivers/md/dm-cache-policy-smq.c static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, cblock 1379 drivers/md/dm-cache-policy-smq.c *cblock = infer_cblock(mq, e); cblock 1400 drivers/md/dm-cache-policy-smq.c static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, cblock 1409 drivers/md/dm-cache-policy-smq.c r = __lookup(mq, oblock, cblock, cblock 1418 drivers/md/dm-cache-policy-smq.c dm_oblock_t oblock, dm_cblock_t *cblock, cblock 1428 drivers/md/dm-cache-policy-smq.c r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); cblock 1463 drivers/md/dm-cache-policy-smq.c from_cblock(work->cblock)); cblock 1517 drivers/md/dm-cache-policy-smq.c static void __smq_set_clear_dirty(struct smq_policy *mq, dm_cblock_t cblock, bool set) cblock 1519 drivers/md/dm-cache-policy-smq.c struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); cblock 1530 drivers/md/dm-cache-policy-smq.c static void smq_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 1536 drivers/md/dm-cache-policy-smq.c __smq_set_clear_dirty(mq, cblock, true); cblock 1540 drivers/md/dm-cache-policy-smq.c static void smq_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 1546 drivers/md/dm-cache-policy-smq.c __smq_set_clear_dirty(mq, cblock, false); cblock 1550 drivers/md/dm-cache-policy-smq.c static unsigned random_level(dm_cblock_t cblock) cblock 1552 drivers/md/dm-cache-policy-smq.c return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); cblock 1556 drivers/md/dm-cache-policy-smq.c dm_oblock_t oblock, dm_cblock_t cblock, cblock 1562 drivers/md/dm-cache-policy-smq.c e = alloc_particular_entry(&mq->cache_alloc, from_cblock(cblock)); cblock 1565 drivers/md/dm-cache-policy-smq.c e->level = hint_valid ? min(hint, NR_CACHE_LEVELS - 1) : random_level(cblock); cblock 1577 drivers/md/dm-cache-policy-smq.c static int smq_invalidate_mapping(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 1580 drivers/md/dm-cache-policy-smq.c struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); cblock 1592 drivers/md/dm-cache-policy-smq.c static uint32_t smq_get_hint(struct dm_cache_policy *p, dm_cblock_t cblock) cblock 1595 drivers/md/dm-cache-policy-smq.c struct entry *e = get_entry(&mq->cache_alloc, from_cblock(cblock)); cblock 32 drivers/md/dm-cache-policy.h dm_cblock_t cblock; cblock 56 drivers/md/dm-cache-policy.h int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, cblock 69 drivers/md/dm-cache-policy.h dm_oblock_t oblock, dm_cblock_t *cblock, cblock 88 drivers/md/dm-cache-policy.h void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); cblock 89 drivers/md/dm-cache-policy.h void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); cblock 96 drivers/md/dm-cache-policy.h dm_cblock_t cblock, bool dirty, cblock 103 drivers/md/dm-cache-policy.h int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); cblock 109 drivers/md/dm-cache-policy.h uint32_t (*get_hint)(struct dm_cache_policy *p, dm_cblock_t cblock); cblock 692 drivers/md/dm-cache-target.c static void set_dirty(struct cache *cache, dm_cblock_t cblock) cblock 694 drivers/md/dm-cache-target.c if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { cblock 696 drivers/md/dm-cache-target.c policy_set_dirty(cache->policy, cblock); cblock 704 drivers/md/dm-cache-target.c static void force_set_dirty(struct cache *cache, dm_cblock_t cblock) cblock 706 drivers/md/dm-cache-target.c if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) cblock 708 drivers/md/dm-cache-target.c policy_set_dirty(cache->policy, cblock); cblock 711 drivers/md/dm-cache-target.c static void force_clear_dirty(struct cache *cache, dm_cblock_t cblock) cblock 713 drivers/md/dm-cache-target.c if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { cblock 718 drivers/md/dm-cache-target.c policy_clear_dirty(cache->policy, cblock); cblock 812 drivers/md/dm-cache-target.c dm_cblock_t cblock) cblock 815 drivers/md/dm-cache-target.c sector_t block = from_cblock(cblock); cblock 861 drivers/md/dm-cache-target.c dm_oblock_t oblock, dm_cblock_t cblock) cblock 864 drivers/md/dm-cache-target.c remap_to_cache(cache, bio, cblock); cblock 866 drivers/md/dm-cache-target.c set_dirty(cache, cblock); cblock 923 drivers/md/dm-cache-target.c dm_oblock_t oblock, dm_cblock_t cblock) cblock 937 drivers/md/dm-cache-target.c remap_to_cache(cache, bio, cblock); cblock 1196 drivers/md/dm-cache-target.c c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; cblock 1241 drivers/md/dm-cache-target.c remap_to_cache(mg->cache, bio, mg->op->cblock); cblock 1265 drivers/md/dm-cache-target.c dm_cblock_t cblock = op->cblock; cblock 1277 drivers/md/dm-cache-target.c force_set_dirty(cache, cblock); cblock 1285 drivers/md/dm-cache-target.c force_clear_dirty(cache, cblock); cblock 1295 drivers/md/dm-cache-target.c force_clear_dirty(cache, cblock); cblock 1302 drivers/md/dm-cache-target.c force_clear_dirty(cache, cblock); cblock 1336 drivers/md/dm-cache-target.c r = dm_cache_insert_mapping(cache->cmd, op->cblock, op->oblock); cblock 1349 drivers/md/dm-cache-target.c r = dm_cache_remove_mapping(cache->cmd, op->cblock); cblock 1437 drivers/md/dm-cache-target.c if ((!is_policy_promote && !is_dirty(cache, op->cblock)) || cblock 1565 drivers/md/dm-cache-target.c static int invalidate_cblock(struct cache *cache, dm_cblock_t cblock) cblock 1567 drivers/md/dm-cache-target.c int r = policy_invalidate_mapping(cache->policy, cblock); cblock 1569 drivers/md/dm-cache-target.c r = dm_cache_remove_mapping(cache->cmd, cblock); cblock 1643 drivers/md/dm-cache-target.c static int invalidate_start(struct cache *cache, dm_cblock_t cblock, cblock 1654 drivers/md/dm-cache-target.c mg->invalidate_cblock = cblock; cblock 1700 drivers/md/dm-cache-target.c dm_cblock_t cblock; cblock 1721 drivers/md/dm-cache-target.c r = policy_lookup_with_work(cache->policy, block, &cblock, data_dir, true, &op); cblock 1736 drivers/md/dm-cache-target.c r = policy_lookup(cache->policy, block, &cblock, data_dir, false, &background_queued); cblock 1780 drivers/md/dm-cache-target.c invalidate_start(cache, cblock, block, bio); cblock 1785 drivers/md/dm-cache-target.c !is_dirty(cache, cblock)) { cblock 1786 drivers/md/dm-cache-target.c remap_to_origin_and_cache(cache, bio, block, cblock); cblock 1789 drivers/md/dm-cache-target.c remap_to_cache_dirty(cache, bio, block, cblock); cblock 2884 drivers/md/dm-cache-target.c static int load_mapping(void *context, dm_oblock_t oblock, dm_cblock_t cblock, cblock 2891 drivers/md/dm-cache-target.c set_bit(from_cblock(cblock), cache->dirty_bitset); cblock 2894 drivers/md/dm-cache-target.c clear_bit(from_cblock(cblock), cache->dirty_bitset); cblock 2896 drivers/md/dm-cache-target.c r = policy_load_mapping(cache->policy, oblock, cblock, dirty, hint, hint_valid); cblock 592 fs/xfs/libxfs/xfs_bmap.c struct xfs_btree_block *cblock;/* child btree block */ cblock 621 fs/xfs/libxfs/xfs_bmap.c cblock = XFS_BUF_TO_BLOCK(cbp); cblock 622 fs/xfs/libxfs/xfs_bmap.c if ((error = xfs_btree_check_block(cur, cblock, 0, cbp))) cblock 2924 fs/xfs/libxfs/xfs_btree.c struct xfs_btree_block *cblock; /* child btree block */ cblock 2953 fs/xfs/libxfs/xfs_btree.c error = xfs_btree_get_buf_block(cur, &nptr, &cblock, &cbp); cblock 2961 fs/xfs/libxfs/xfs_btree.c memcpy(cblock, block, xfs_btree_block_len(cur)); cblock 2964 fs/xfs/libxfs/xfs_btree.c cblock->bb_u.l.bb_blkno = cpu_to_be64(cbp->b_bn); cblock 2966 fs/xfs/libxfs/xfs_btree.c cblock->bb_u.s.bb_blkno = cpu_to_be64(cbp->b_bn); cblock 2975 fs/xfs/libxfs/xfs_btree.c ckp = xfs_btree_key_addr(cur, 1, cblock); cblock 2976 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_keys(cur, ckp, kp, xfs_btree_get_numrecs(cblock)); cblock 2978 fs/xfs/libxfs/xfs_btree.c cpp = xfs_btree_ptr_addr(cur, 1, cblock); cblock 2979 fs/xfs/libxfs/xfs_btree.c for (i = 0; i < be16_to_cpu(cblock->bb_numrecs); i++) { cblock 2985 fs/xfs/libxfs/xfs_btree.c xfs_btree_copy_ptrs(cur, cpp, pp, xfs_btree_get_numrecs(cblock)); cblock 2994 fs/xfs/libxfs/xfs_btree.c 1 - xfs_btree_get_numrecs(cblock), cblock 3004 fs/xfs/libxfs/xfs_btree.c xfs_btree_log_keys(cur, cbp, 1, be16_to_cpu(cblock->bb_numrecs)); cblock 3005 fs/xfs/libxfs/xfs_btree.c xfs_btree_log_ptrs(cur, cbp, 1, be16_to_cpu(cblock->bb_numrecs)); cblock 3511 fs/xfs/libxfs/xfs_btree.c struct xfs_btree_block *cblock; cblock 3544 fs/xfs/libxfs/xfs_btree.c cblock = xfs_btree_get_block(cur, level - 1, &cbp); cblock 3545 fs/xfs/libxfs/xfs_btree.c numrecs = xfs_btree_get_numrecs(cblock); cblock 3572 fs/xfs/libxfs/xfs_btree.c ASSERT(block->bb_numrecs == cblock->bb_numrecs); cblock 3575 fs/xfs/libxfs/xfs_btree.c ckp = xfs_btree_key_addr(cur, 1, cblock); cblock 3579 fs/xfs/libxfs/xfs_btree.c cpp = xfs_btree_ptr_addr(cur, 1, cblock); cblock 147 tools/perf/builtin-record.c static int record__aio_write(struct aiocb *cblock, int trace_fd, cblock 152 tools/perf/builtin-record.c cblock->aio_fildes = trace_fd; cblock 153 tools/perf/builtin-record.c cblock->aio_buf = buf; cblock 154 tools/perf/builtin-record.c cblock->aio_nbytes = size; cblock 155 tools/perf/builtin-record.c cblock->aio_offset = off; cblock 156 tools/perf/builtin-record.c cblock->aio_sigevent.sigev_notify = SIGEV_NONE; cblock 159 tools/perf/builtin-record.c rc = aio_write(cblock); cblock 163 tools/perf/builtin-record.c cblock->aio_fildes = -1; cblock 172 tools/perf/builtin-record.c static int record__aio_complete(struct mmap *md, struct aiocb *cblock) cblock 180 tools/perf/builtin-record.c aio_errno = aio_error(cblock); cblock 184 tools/perf/builtin-record.c written = aio_ret = aio_return(cblock); cblock 191 tools/perf/builtin-record.c rem_size = cblock->aio_nbytes - written; cblock 194 tools/perf/builtin-record.c cblock->aio_fildes = -1; cblock 208 tools/perf/builtin-record.c rem_off = cblock->aio_offset + written; cblock 209 tools/perf/builtin-record.c rem_buf = (void *)(cblock->aio_buf + written); cblock 210 tools/perf/builtin-record.c record__aio_write(cblock, cblock->aio_fildes,