Lines Matching refs:cookie
28 struct fscache_cookie *cookie) in __fscache_begin_read_operation() argument
39 if (hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation()
42 if (test_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) { in __fscache_begin_read_operation()
47 ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX); in __fscache_begin_read_operation()
49 if (fscache_wait_for_deferred_lookup(cookie) < 0) in __fscache_begin_read_operation()
52 op = fscache_alloc_retrieval(cookie, NULL, NULL, NULL); in __fscache_begin_read_operation()
55 trace_fscache_page_op(cookie, NULL, &op->op, fscache_page_op_retr_multi); in __fscache_begin_read_operation()
57 spin_lock(&cookie->lock); in __fscache_begin_read_operation()
59 if (!fscache_cookie_enabled(cookie) || in __fscache_begin_read_operation()
60 hlist_empty(&cookie->backing_objects)) in __fscache_begin_read_operation()
62 object = hlist_entry(cookie->backing_objects.first, in __fscache_begin_read_operation()
65 __fscache_use_cookie(cookie); in __fscache_begin_read_operation()
71 spin_unlock(&cookie->lock); in __fscache_begin_read_operation()
105 wake_cookie = __fscache_unuse_cookie(cookie); in __fscache_begin_read_operation()
107 spin_unlock(&cookie->lock); in __fscache_begin_read_operation()
110 __fscache_wake_unused_cookie(cookie); in __fscache_begin_read_operation()