Searched refs:cache_alloc (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/md/
H A Ddm-cache-policy-smq.c814 struct entry_alloc cache_alloc; member in struct:smq_policy
997 return to_cblock(get_index(&mq->cache_alloc, e));
1054 unsigned int threshold_level = allocator_empty(&mq->cache_alloc) ?
1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated;
1247 if (allocator_empty(&mq->cache_alloc)) {
1264 e = alloc_entry(&mq->cache_alloc);
1272 free_entry(&mq->cache_alloc, e);
1295 if (!allocator_empty(&mq->cache_alloc) && fast_promote)
1473 struct entry *e = get_entry(&mq->cache_alloc,
1486 free_entry(&mq->cache_alloc,
[all...]
/linux-master/drivers/md/bcache/
H A Dsuper.c2229 static int cache_alloc(struct cache *ca) function
2357 ret = cache_alloc(ca);
2360 err = "cache_alloc(): -ENOMEM";
2362 err = "cache_alloc(): cache device is too small";
2364 err = "cache_alloc(): unknown error";

Completed in 94 milliseconds