Lines Matching defs:fq
130 struct inet_frag_queue *fq = ptr;
133 count = del_timer_sync(&fq->timer) ? 1 : 0;
135 spin_lock_bh(&fq->lock);
136 if (!(fq->flags & INET_FRAG_COMPLETE)) {
137 fq->flags |= INET_FRAG_COMPLETE;
139 } else if (fq->flags & INET_FRAG_HASH_DEAD) {
142 spin_unlock_bh(&fq->lock);
144 if (refcount_sub_and_test(count, &fq->refcnt))
145 inet_frag_destroy(fq);
194 void inet_frag_kill(struct inet_frag_queue *fq)
196 if (del_timer(&fq->timer))
197 refcount_dec(&fq->refcnt);
199 if (!(fq->flags & INET_FRAG_COMPLETE)) {
200 struct fqdir *fqdir = fq->fqdir;
202 fq->flags |= INET_FRAG_COMPLETE;
210 rhashtable_remove_fast(&fqdir->rhashtable, &fq->node,
212 refcount_dec(&fq->refcnt);
214 fq->flags |= INET_FRAG_HASH_DEAD;
326 struct inet_frag_queue *fq = NULL, *prev;
335 fq = inet_frag_create(fqdir, key, &prev);
337 fq = prev;
338 if (!refcount_inc_not_zero(&fq->refcnt))
339 fq = NULL;
342 return fq;