Lines Matching refs:item

42 static bool cache_defer_req(struct cache_req *req, struct cache_head *item);
43 static void cache_revisit_request(struct cache_head *item);
287 * It checks the currency of a cache item and will (later)
294 * upcall completed but item is still invalid (implying that
295 * the cache item has been replaced with a newer one).
576 #define DFR_HASH(item) ((((long)item)>>4 ^ (((long)item)>>13)) % DFR_HASHSIZE)
594 static void __hash_deferred_req(struct cache_deferred_req *dreq, struct cache_head *item)
596 int hash = DFR_HASH(item);
603 struct cache_head *item,
607 dreq->item = item;
611 __hash_deferred_req(dreq, item);
634 static void cache_wait_req(struct cache_req *req, struct cache_head *item)
642 setup_deferral(dreq, item, 0);
644 if (!test_bit(CACHE_PENDING, &item->flags) ||
707 static bool cache_defer_req(struct cache_req *req, struct cache_head *item)
712 cache_wait_req(req, item);
713 if (!test_bit(CACHE_PENDING, &item->flags))
720 setup_deferral(dreq, item, 1);
721 if (!test_bit(CACHE_PENDING, &item->flags))
725 cache_revisit_request(item);
731 static void cache_revisit_request(struct cache_head *item)
736 int hash = DFR_HASH(item);
742 if (dreq->item == item) {
791 * New readers are added to the head. If, on read, an item is found with
804 struct cache_head *item;
820 detail->cache_request(detail, crq->item, &bp, &len);
867 if (rp->offset == 0 && !test_bit(CACHE_PENDING, &rq->item->flags)) {
893 !test_bit(CACHE_PENDING, &rq->item->flags)) {
896 cache_put(rq->item, cd);
1095 if (cr->item != ch)
1108 cache_put(cr->item, detail);
1231 crq->item = cache_get(h);
1337 * We call ->cache_show passing NULL for the item to
1338 * get a header, then pass each real item in the cache