Lines Matching refs:cookie

306 			 struct fscache_cookie *cookie,  in fscache_object_init()  argument
329 object->cookie = cookie; in fscache_object_init()
330 fscache_cookie_get(cookie, fscache_cookie_get_attach_object); in fscache_object_init()
458 struct fscache_cookie *cookie = object->cookie; in fscache_look_up_object() local
481 cookie->def->name, object->cache->tag->name); in fscache_look_up_object()
516 struct fscache_cookie *cookie = object->cookie; in fscache_object_lookup_negative() local
526 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_object_lookup_negative()
527 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_object_lookup_negative()
529 _debug("wake up lookup %p", &cookie->flags); in fscache_object_lookup_negative()
530 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_object_lookup_negative()
531 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_object_lookup_negative()
549 struct fscache_cookie *cookie = object->cookie; in fscache_obtained_object() local
559 clear_bit_unlock(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in fscache_obtained_object()
560 clear_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_obtained_object()
565 clear_bit_unlock(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags); in fscache_obtained_object()
566 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_obtained_object()
629 struct fscache_cookie *cookie; in fscache_lookup_failure() local
641 cookie = object->cookie; in fscache_lookup_failure()
642 set_bit(FSCACHE_COOKIE_UNAVAILABLE, &cookie->flags); in fscache_lookup_failure()
643 if (test_and_clear_bit(FSCACHE_COOKIE_LOOKING_UP, &cookie->flags)) in fscache_lookup_failure()
644 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_LOOKING_UP); in fscache_lookup_failure()
707 struct fscache_cookie *cookie = object->cookie; in fscache_drop_object() local
713 ASSERT(cookie != NULL); in fscache_drop_object()
716 if (test_bit(FSCACHE_COOKIE_AUX_UPDATED, &cookie->flags)) { in fscache_drop_object()
724 spin_lock(&cookie->lock); in fscache_drop_object()
726 if (hlist_empty(&cookie->backing_objects) && in fscache_drop_object()
727 test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in fscache_drop_object()
729 spin_unlock(&cookie->lock); in fscache_drop_object()
732 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_INVALIDATING); in fscache_drop_object()
806 fscache_cookie_put(object->cookie, fscache_cookie_put_object); in fscache_object_destroy()
807 object->cookie = NULL; in fscache_object_destroy()
931 if (!object->cookie->def->check_aux) { in fscache_check_aux()
936 result = object->cookie->def->check_aux(object->cookie->netfs_data, in fscache_check_aux()
969 struct fscache_cookie *cookie = object->cookie; in _fscache_invalidate_object() local
977 ASSERT(radix_tree_empty(&object->cookie->stores)); in _fscache_invalidate_object()
984 fscache_invalidate_writes(cookie); in _fscache_invalidate_object()
993 fscache_operation_init(cookie, op, object->cache->ops->invalidate_object, in _fscache_invalidate_object()
998 trace_fscache_page_op(cookie, NULL, op, fscache_page_op_invalidate); in _fscache_invalidate_object()
1000 spin_lock(&cookie->lock); in _fscache_invalidate_object()
1003 spin_unlock(&cookie->lock); in _fscache_invalidate_object()
1010 set_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags); in _fscache_invalidate_object()
1015 if (test_and_clear_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) in _fscache_invalidate_object()
1016 wake_up_bit(&cookie->flags, FSCACHE_COOKIE_INVALIDATING); in _fscache_invalidate_object()
1028 spin_unlock(&cookie->lock); in _fscache_invalidate_object()