Lines Matching refs:cookie
298 struct fscache_cookie *cookie, in fscache_object_init() argument
321 object->cookie = cookie; in fscache_object_init()
322 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init()
449 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local
472 cookie->def->name, object->cache->tag->name); in fscache_look_up_object()
507 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local
517 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative()
518 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative()
520 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative()
521 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_object_lookup_negative()
539 struct fscache_cookie *cookie = object->cookie; in fscache_obtained_object() local
549 clear_bit_unlock(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_obtained_object()
550 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_obtained_object()
555 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_obtained_object()
556 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_obtained_object()
618 struct fscache_cookie *cookie; in fscache_lookup_failure() local
630 cookie = object->cookie; in fscache_lookup_failure()
631 set_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_lookup_failure()
632 if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags)) in fscache_lookup_failure()
633 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_lookup_failure()
696 struct fscache_cookie *cookie = object->cookie; in fscache_drop_object() local
702 ASSERT(cookie != NULL); in fscache_drop_object()
705 if (test_bit(FSCACHE_COOKIE_AUX_UPDATED, &cookie->flags)) { in fscache_drop_object()
713 spin_lock(&cookie->lock); in fscache_drop_object()
715 if (hlist_empty(&cookie->backing_objects) && in fscache_drop_object()
716 test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in fscache_drop_object()
718 spin_unlock(&cookie->lock); in fscache_drop_object()
721 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_INVALIDATING); in fscache_drop_object()
722 if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags)) in fscache_drop_object()
723 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_drop_object()
796 fscache_cookie_put(object->cookie, fscache_cookie_put_object); in fscache_object_destroy()
797 object->cookie = NULL; in fscache_object_destroy()
922 if (!object->cookie->def->check_aux) { in fscache_check_aux()
927 result = object->cookie->def->check_aux(object->cookie->netfs_data, in fscache_check_aux()
960 struct fscache_cookie *cookie = object->cookie; in _fscache_invalidate_object() local
968 ASSERT(radix_tree_empty(&object->cookie->stores)); in _fscache_invalidate_object()
975 fscache_invalidate_writes(cookie); in _fscache_invalidate_object()
984 fscache_operation_init(cookie, op, object->cache->ops->invalidate_object, in _fscache_invalidate_object()
989 trace_fscache_page_op(cookie, NULL, op, fscache_page_op_invalidate); in _fscache_invalidate_object()
991 spin_lock(&cookie->lock); in _fscache_invalidate_object()
994 spin_unlock(&cookie->lock); in _fscache_invalidate_object()
1001 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in _fscache_invalidate_object()
1006 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in _fscache_invalidate_object()
1007 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_INVALIDATING); in _fscache_invalidate_object()
1019 spin_unlock(&cookie->lock); in _fscache_invalidate_object()