Lines Matching refs:cache
395 struct cachefiles_cache *cache; in cachefiles_read_or_alloc_page() local
403 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_page()
404 struct cachefiles_cache, cache); in cachefiles_read_or_alloc_page()
444 } else if (cachefiles_has_space(cache, 0, 1) == 0) { in cachefiles_read_or_alloc_page()
684 struct cachefiles_cache *cache; in cachefiles_read_or_alloc_pages() local
694 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
695 struct cachefiles_cache, cache); in cachefiles_read_or_alloc_pages()
705 if (cachefiles_has_space(cache, 0, *nr_pages) < 0) in cachefiles_read_or_alloc_pages()
801 struct cachefiles_cache *cache; in cachefiles_allocate_page() local
806 cache = container_of(object->fscache.cache, in cachefiles_allocate_page()
807 struct cachefiles_cache, cache); in cachefiles_allocate_page()
811 ret = cachefiles_has_space(cache, 0, 1); in cachefiles_allocate_page()
839 struct cachefiles_cache *cache; in cachefiles_allocate_pages() local
846 cache = container_of(object->fscache.cache, in cachefiles_allocate_pages()
847 struct cachefiles_cache, cache); in cachefiles_allocate_pages()
851 ret = cachefiles_has_space(cache, 0, *nr_pages); in cachefiles_allocate_pages()
882 struct cachefiles_cache *cache; in cachefiles_write_page() local
905 cache = container_of(object->fscache.cache, in cachefiles_write_page()
906 struct cachefiles_cache, cache); in cachefiles_write_page()
910 path.mnt = cache->mnt; in cachefiles_write_page()
912 file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred); in cachefiles_write_page()
958 struct cachefiles_cache *cache; in cachefiles_uncache_page() local
961 cache = container_of(object->fscache.cache, in cachefiles_uncache_page()
962 struct cachefiles_cache, cache); in cachefiles_uncache_page()