/linux/drivers/md/ |
H A D | dm-cache-policy-internal.h | 16 static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup() argument 19 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup() 23 dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup_with_work() argument 29 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work() 32 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work() 48 static inline void policy_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_set_dirty() argument 50 p->set_dirty(p, cblock); in policy_set_dirty() 53 static inline void policy_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_clear_dirty() argument 55 p->clear_dirty(p, cblock); in policy_clear_dirty() 59 dm_oblock_t oblock, dm_cblock_t cblock, in policy_load_mapping() argument [all …]
|
H A D | dm-cache-policy.h | 33 dm_cblock_t cblock; member 57 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, 70 dm_oblock_t oblock, dm_cblock_t *cblock, 89 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); 90 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); 97 dm_cblock_t cblock, bool dirty, 104 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); 110 uint32_t (*get_hint)(struct dm_cache_policy *p, dm_cblock_t cblock);
|
H A D | dm-cache-target.c | 612 static void set_dirty(struct cache *cache, dm_cblock_t cblock) in set_dirty() argument 614 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty() 616 policy_set_dirty(cache->policy, cblock); in set_dirty() 624 static void force_set_dirty(struct cache *cache, dm_cblock_t cblock) in force_set_dirty() argument 626 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty() 628 policy_set_dirty(cache->policy, cblock); in force_set_dirty() 631 static void force_clear_dirty(struct cache *cache, dm_cblock_t cblock) in force_clear_dirty() argument 633 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty() 638 policy_clear_dirty(cache->policy, cblock); in force_clear_dirty() 724 dm_cblock_t cblock) in remap_to_cache() argument [all …]
|
H A D | dm-cache-policy-smq.c | 1198 work.cblock = infer_cblock(mq, e); in queue_writeback() 1229 work.cblock = infer_cblock(mq, e); in queue_demotion() 1269 work.cblock = infer_cblock(mq, e); in queue_promotion() 1376 static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, in __lookup() argument 1390 *cblock = infer_cblock(mq, e); in __lookup() 1411 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup() argument 1420 r = __lookup(mq, oblock, cblock, in smq_lookup() 1429 dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup_with_work() argument 1439 r = __lookup(mq, oblock, cblock, data_dir, fast_copy, work, &background_queued); in smq_lookup_with_work() 1474 from_cblock(work->cblock)); in __complete_background_work() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
H A 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/tools/perf/ |
H A D | builtin-record.c | 287 static int record__aio_write(struct aiocb *cblock, int trace_fd, in record__aio_write() argument 292 cblock->aio_fildes = trace_fd; in record__aio_write() 293 cblock->aio_buf = buf; in record__aio_write() 294 cblock->aio_nbytes = size; in record__aio_write() 295 cblock->aio_offset = off; in record__aio_write() 296 cblock->aio_sigevent.sigev_notify = SIGEV_NONE; in record__aio_write() 299 rc = aio_write(cblock); in record__aio_write() 303 cblock->aio_fildes = -1; in record__aio_write() 312 static int record__aio_complete(struct mmap *md, struct aiocb *cblock) in record__aio_complete() argument 320 aio_errno = aio_error(cblock); in record__aio_complete() [all...] |
/linux/fs/xfs/libxfs/ |
H A D | xfs_bmap.c | 572 struct xfs_btree_block *cblock;/* child btree block */ in xfs_bmap_btree_to_extents() local 603 cblock = XFS_BUF_TO_BLOCK(cbp); in xfs_bmap_btree_to_extents() 604 if ((error = xfs_btree_check_block(cur, cblock, 0, cbp))) in xfs_bmap_btree_to_extents()
|