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()
441 } else if (cachefiles_has_space(cache, 0, 1) == 0) { in cachefiles_read_or_alloc_page()
681 struct cachefiles_cache *cache; in cachefiles_read_or_alloc_pages() local
691 cache = container_of(object->fscache.cache, in cachefiles_read_or_alloc_pages()
692 struct cachefiles_cache, cache); in cachefiles_read_or_alloc_pages()
702 if (cachefiles_has_space(cache, 0, *nr_pages) < 0) in cachefiles_read_or_alloc_pages()
795 struct cachefiles_cache *cache; in cachefiles_allocate_page() local
800 cache = container_of(object->fscache.cache, in cachefiles_allocate_page()
801 struct cachefiles_cache, cache); in cachefiles_allocate_page()
805 ret = cachefiles_has_space(cache, 0, 1); in cachefiles_allocate_page()
833 struct cachefiles_cache *cache; in cachefiles_allocate_pages() local
840 cache = container_of(object->fscache.cache, in cachefiles_allocate_pages()
841 struct cachefiles_cache, cache); in cachefiles_allocate_pages()
845 ret = cachefiles_has_space(cache, 0, *nr_pages); in cachefiles_allocate_pages()
876 struct cachefiles_cache *cache; in cachefiles_write_page() local
899 cache = container_of(object->fscache.cache, in cachefiles_write_page()
900 struct cachefiles_cache, cache); in cachefiles_write_page()
913 path.mnt = cache->mnt; in cachefiles_write_page()
915 file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred); in cachefiles_write_page()
959 struct cachefiles_cache *cache; in cachefiles_uncache_page() local
962 cache = container_of(object->fscache.cache, in cachefiles_uncache_page()
963 struct cachefiles_cache, cache); in cachefiles_uncache_page()