• Home
  • Raw
  • Download

Lines Matching refs:fqdir

150 	struct fqdir *fqdir = container_of(work, struct fqdir, destroy_work);  in fqdir_work_fn()  local
151 struct inet_frags *f = fqdir->f; in fqdir_work_fn()
153 rhashtable_free_and_destroy(&fqdir->rhashtable, inet_frags_free_cb, NULL); in fqdir_work_fn()
164 kfree(fqdir); in fqdir_work_fn()
167 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net) in fqdir_init()
169 struct fqdir *fqdir = kzalloc(sizeof(*fqdir), GFP_KERNEL); in fqdir_init() local
172 if (!fqdir) in fqdir_init()
174 fqdir->f = f; in fqdir_init()
175 fqdir->net = net; in fqdir_init()
176 res = rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params); in fqdir_init()
178 kfree(fqdir); in fqdir_init()
182 *fqdirp = fqdir; in fqdir_init()
187 void fqdir_exit(struct fqdir *fqdir) in fqdir_exit() argument
189 INIT_WORK(&fqdir->destroy_work, fqdir_work_fn); in fqdir_exit()
190 queue_work(system_wq, &fqdir->destroy_work); in fqdir_exit()
200 struct fqdir *fqdir = fq->fqdir; in inet_frag_kill() local
209 if (!fqdir->dead) { in inet_frag_kill()
210 rhashtable_remove_fast(&fqdir->rhashtable, &fq->node, in inet_frag_kill()
211 fqdir->f->rhash_params); in inet_frag_kill()
225 struct inet_frags *f = q->fqdir->f; in inet_frag_destroy_rcu()
256 struct fqdir *fqdir; in inet_frag_destroy() local
264 fqdir = q->fqdir; in inet_frag_destroy()
265 f = fqdir->f; in inet_frag_destroy()
271 sub_frag_mem_limit(fqdir, sum); in inet_frag_destroy()
275 static struct inet_frag_queue *inet_frag_alloc(struct fqdir *fqdir, in inet_frag_alloc() argument
285 q->fqdir = fqdir; in inet_frag_alloc()
287 add_frag_mem_limit(fqdir, f->qsize); in inet_frag_alloc()
296 static struct inet_frag_queue *inet_frag_create(struct fqdir *fqdir, in inet_frag_create() argument
300 struct inet_frags *f = fqdir->f; in inet_frag_create()
303 q = inet_frag_alloc(fqdir, f, arg); in inet_frag_create()
308 mod_timer(&q->timer, jiffies + fqdir->timeout); in inet_frag_create()
310 *prev = rhashtable_lookup_get_insert_key(&fqdir->rhashtable, &q->key, in inet_frag_create()
322 struct inet_frag_queue *inet_frag_find(struct fqdir *fqdir, void *key) in inet_frag_find() argument
326 if (!fqdir->high_thresh || frag_mem_limit(fqdir) > fqdir->high_thresh) in inet_frag_find()
331 prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params); in inet_frag_find()
333 fq = inet_frag_create(fqdir, key, &prev); in inet_frag_find()
444 add_frag_mem_limit(q->fqdir, delta); in inet_frag_reasm_prepare()
466 add_frag_mem_limit(q->fqdir, clone->truesize); in inet_frag_reasm_prepare()
536 sub_frag_mem_limit(q->fqdir, sum_truesize); in inet_frag_reasm_finish()
564 sub_frag_mem_limit(q->fqdir, head->truesize); in inet_frag_pull_head()