Lines Matching refs:b
120 nfsd_reply_cache_free_locked(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free_locked() argument
128 rb_erase(&rp->c_node, &b->rb_head); in nfsd_reply_cache_free_locked()
137 nfsd_reply_cache_free(struct nfsd_drc_bucket *b, struct svc_cacherep *rp, in nfsd_reply_cache_free() argument
140 spin_lock(&b->cache_lock); in nfsd_reply_cache_free()
141 nfsd_reply_cache_free_locked(b, rp, nn); in nfsd_reply_cache_free()
142 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free()
221 lru_put_end(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in lru_put_end() argument
224 list_move_tail(&rp->c_lru, &b->lru_head); in lru_put_end()
228 prune_bucket(struct nfsd_drc_bucket *b, struct nfsd_net *nn) in prune_bucket() argument
233 list_for_each_entry_safe(rp, tmp, &b->lru_head, c_lru) { in prune_bucket()
243 nfsd_reply_cache_free_locked(b, rp, nn); in prune_bucket()
260 struct nfsd_drc_bucket *b = &nn->drc_hashtbl[i]; in prune_cache_entries() local
262 if (list_empty(&b->lru_head)) in prune_cache_entries()
264 spin_lock(&b->cache_lock); in prune_cache_entries()
265 freed += prune_bucket(b, nn); in prune_cache_entries()
266 spin_unlock(&b->cache_lock); in prune_cache_entries()
340 nfsd_cache_insert(struct nfsd_drc_bucket *b, struct svc_cacherep *key, in nfsd_cache_insert() argument
344 struct rb_node **p = &b->rb_head.rb_node, in nfsd_cache_insert()
365 rb_insert_color(&key->c_node, &b->rb_head); in nfsd_cache_insert()
378 lru_put_end(b, ret); in nfsd_cache_insert()
404 struct nfsd_drc_bucket *b = &nn->drc_hashtbl[hash]; in nfsd_cache_lookup() local
424 spin_lock(&b->cache_lock); in nfsd_cache_lookup()
425 found = nfsd_cache_insert(b, rp, nn); in nfsd_cache_lookup()
440 prune_bucket(b, nn); in nfsd_cache_lookup()
443 spin_unlock(&b->cache_lock); in nfsd_cache_lookup()
510 struct nfsd_drc_bucket *b; in nfsd_cache_update() local
518 b = &nn->drc_hashtbl[hash]; in nfsd_cache_update()
525 nfsd_reply_cache_free(b, rp, nn); in nfsd_cache_update()
540 nfsd_reply_cache_free(b, rp, nn); in nfsd_cache_update()
547 nfsd_reply_cache_free(b, rp, nn); in nfsd_cache_update()
550 spin_lock(&b->cache_lock); in nfsd_cache_update()
552 lru_put_end(b, rp); in nfsd_cache_update()
556 spin_unlock(&b->cache_lock); in nfsd_cache_update()