Lines Matching refs:cache
133 ASSERT(test_bit(FSCACHE_IOERROR, &object->cache->flags)); in fscache_submit_exclusive_op()
236 } else if (!test_bit(FSCACHE_IOERROR, &object->cache->flags)) { in fscache_submit_op()
401 struct fscache_cache *cache; in fscache_put_operation() local
437 cache = object->cache; in fscache_put_operation()
438 spin_lock(&cache->op_gc_list_lock); in fscache_put_operation()
439 list_add_tail(&op->pend_link, &cache->op_gc_list); in fscache_put_operation()
440 spin_unlock(&cache->op_gc_list_lock); in fscache_put_operation()
441 schedule_work(&cache->op_gc); in fscache_put_operation()
465 struct fscache_cache *cache = in fscache_operation_gc() local
472 spin_lock(&cache->op_gc_list_lock); in fscache_operation_gc()
473 if (list_empty(&cache->op_gc_list)) { in fscache_operation_gc()
474 spin_unlock(&cache->op_gc_list_lock); in fscache_operation_gc()
478 op = list_entry(cache->op_gc_list.next, in fscache_operation_gc()
481 spin_unlock(&cache->op_gc_list_lock); in fscache_operation_gc()
503 if (!list_empty(&cache->op_gc_list)) in fscache_operation_gc()
504 schedule_work(&cache->op_gc); in fscache_operation_gc()