Lines Matching defs:cache
379 * read a page from the cache or allocate a block in which to store it
380 * - cache withdrawal is prevented by the caller
385 * - if the page is backed by a block in the cache:
397 struct cachefiles_cache *cache;
405 cache = container_of(object->fscache.cache,
406 struct cachefiles_cache, cache);
443 } else if (cachefiles_has_space(cache, 0, 1) == 0) {
444 /* there's space in the cache we can use */
679 * read a list of pages from the cache or allocate blocks in which to store
688 struct cachefiles_cache *cache;
698 cache = container_of(object->fscache.cache,
699 struct cachefiles_cache, cache);
709 if (cachefiles_has_space(cache, 0, *nr_pages) < 0)
786 * allocate a block in the cache in which to store a page
787 * - cache withdrawal is prevented by the caller
801 struct cachefiles_cache *cache;
806 cache = container_of(object->fscache.cache,
807 struct cachefiles_cache, cache);
811 ret = cachefiles_has_space(cache, 0, 1);
823 * allocate blocks in the cache in which to store a set of pages
824 * - cache withdrawal is prevented by the caller
839 struct cachefiles_cache *cache;
846 cache = container_of(object->fscache.cache,
847 struct cachefiles_cache, cache);
851 ret = cachefiles_has_space(cache, 0, *nr_pages);
873 * request a page be stored in the cache
874 * - cache withdrawal is prevented by the caller
875 * - this request may be ignored if there's no cache block available, in which
882 struct cachefiles_cache *cache;
905 cache = container_of(object->fscache.cache,
906 struct cachefiles_cache, cache);
919 path.mnt = cache->mnt;
921 file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred);
960 * - cache withdrawal is prevented by the caller