/linux-6.1.9/drivers/md/ |
D | dm-cache-policy-internal.h | 15 static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup() argument 18 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup() 22 dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup_with_work() argument 28 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work() 31 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work() 47 static inline void policy_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_set_dirty() argument 49 p->set_dirty(p, cblock); in policy_set_dirty() 52 static inline void policy_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_clear_dirty() argument 54 p->clear_dirty(p, cblock); in policy_clear_dirty() 58 dm_oblock_t oblock, dm_cblock_t cblock, in policy_load_mapping() argument [all …]
|
D | dm-cache-policy.h | 32 dm_cblock_t cblock; member 56 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, 69 dm_oblock_t oblock, dm_cblock_t *cblock, 88 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); 89 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); 96 dm_cblock_t cblock, bool dirty, 103 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); 109 uint32_t (*get_hint)(struct dm_cache_policy *p, dm_cblock_t cblock);
|
D | dm-cache-target.c | 609 static void set_dirty(struct cache *cache, dm_cblock_t cblock) in set_dirty() argument 611 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty() 613 policy_set_dirty(cache->policy, cblock); in set_dirty() 621 static void force_set_dirty(struct cache *cache, dm_cblock_t cblock) in force_set_dirty() argument 623 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty() 625 policy_set_dirty(cache->policy, cblock); in force_set_dirty() 628 static void force_clear_dirty(struct cache *cache, dm_cblock_t cblock) in force_clear_dirty() argument 630 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty() 635 policy_clear_dirty(cache->policy, cblock); in force_clear_dirty() 717 dm_cblock_t cblock) in remap_to_cache() argument [all …]
|
D | dm-cache-metadata.h | 86 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock); 87 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock, dm_oblock_t oblock); 91 dm_cblock_t cblock, bool dirty,
|
D | dm-cache-policy-smq.c | 1189 work.cblock = infer_cblock(mq, e); in queue_writeback() 1220 work.cblock = infer_cblock(mq, e); in queue_demotion() 1260 work.cblock = infer_cblock(mq, e); in queue_promotion() 1367 static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, in __lookup() argument 1381 *cblock = infer_cblock(mq, e); in __lookup() 1402 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup() argument 1411 r = __lookup(mq, oblock, cblock, in smq_lookup() 1420 dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup_with_work() argument 1430 r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); in smq_lookup_with_work() 1465 from_cblock(work->cblock)); in __complete_background_work() [all …]
|
D | dm-cache-metadata.c | 1224 static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in __remove() argument 1230 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __remove() 1239 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in dm_cache_remove_mapping() argument 1244 r = __remove(cmd, cblock); in dm_cache_remove_mapping() 1251 dm_cblock_t cblock, dm_oblock_t oblock) in __insert() argument 1257 r = dm_array_set_value(&cmd->info, cmd->root, from_cblock(cblock), in __insert() 1267 dm_cblock_t cblock, dm_oblock_t oblock) in dm_cache_insert_mapping() argument 1272 r = __insert(cmd, cblock, oblock); in dm_cache_insert_mapping() 1512 static int __dump_mapping(void *context, uint64_t cblock, void *leaf) in __dump_mapping() argument 1547 static int __dirty(struct dm_cache_metadata *cmd, dm_cblock_t cblock, bool dirty) in __dirty() argument [all …]
|
/linux-6.1.9/Documentation/admin-guide/device-mapper/ |
D | cache.rst | 310 message, which takes an arbitrary number of cblock ranges. Each cblock 312 of values from 5 to 9. Each cblock must be expressed as a decimal 313 value, in the future a variant message that takes cblock ranges 318 invalidate_cblocks [<cblock>|<cblock begin>-<cblock end>]*
|
/linux-6.1.9/tools/perf/ |
D | builtin-record.c | 282 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument 287 cblock->aio_fildes = trace_fd; in record__aio_write() 288 cblock->aio_buf = buf; in record__aio_write() 289 cblock->aio_nbytes = size; in record__aio_write() 290 cblock->aio_offset = off; in record__aio_write() 291 cblock->aio_sigevent.sigev_notify = SIGEV_NONE; in record__aio_write() 294 rc = aio_write(cblock); in record__aio_write() 298 cblock->aio_fildes = -1; in record__aio_write() 307 static int record__aio_complete(struct mmap *md, struct aiocb *cblock) in record__aio_complete() argument 315 aio_errno = aio_error(cblock); in record__aio_complete() [all …]
|
/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_btree.c | 2966 struct xfs_btree_block *cblock; /* child btree block */ in xfs_btree_new_iroot() local 2995 error = xfs_btree_get_buf_block(cur, &nptr, &cblock, &cbp); in xfs_btree_new_iroot() 3003 memcpy(cblock, block, xfs_btree_block_len(cur)); in xfs_btree_new_iroot() 3007 cblock->bb_u.l.bb_blkno = bno; in xfs_btree_new_iroot() 3009 cblock->bb_u.s.bb_blkno = bno; in xfs_btree_new_iroot() 3019 ckp = xfs_btree_key_addr(cur, 1, cblock); in xfs_btree_new_iroot() 3020 xfs_btree_copy_keys(cur, ckp, kp, xfs_btree_get_numrecs(cblock)); in xfs_btree_new_iroot() 3022 cpp = xfs_btree_ptr_addr(cur, 1, cblock); in xfs_btree_new_iroot() 3023 for (i = 0; i < be16_to_cpu(cblock->bb_numrecs); i++) { in xfs_btree_new_iroot() 3029 xfs_btree_copy_ptrs(cur, cpp, pp, xfs_btree_get_numrecs(cblock)); in xfs_btree_new_iroot() [all …]
|
D | xfs_bmap.c | 544 struct xfs_btree_block *cblock;/* child btree block */ in xfs_bmap_btree_to_extents() local 572 cblock = XFS_BUF_TO_BLOCK(cbp); in xfs_bmap_btree_to_extents() 573 if ((error = xfs_btree_check_block(cur, cblock, 0, cbp))) in xfs_bmap_btree_to_extents()
|