Lines Matching refs:gcb
371 struct rrpc_block_gc *gcb = container_of(work, struct rrpc_block_gc, in rrpc_block_gc() local
373 struct rrpc *rrpc = gcb->rrpc; in rrpc_block_gc()
374 struct rrpc_block *rblk = gcb->rblk; in rrpc_block_gc()
385 mempool_free(gcb, rrpc->gcb_pool); in rrpc_block_gc()
422 struct rrpc_block_gc *gcb; in rrpc_lun_gc() local
445 gcb = mempool_alloc(rrpc->gcb_pool, GFP_ATOMIC); in rrpc_lun_gc()
446 if (!gcb) in rrpc_lun_gc()
449 gcb->rrpc = rrpc; in rrpc_lun_gc()
450 gcb->rblk = rblock; in rrpc_lun_gc()
451 INIT_WORK(&gcb->ws_gc, rrpc_block_gc); in rrpc_lun_gc()
453 queue_work(rrpc->kgc_wq, &gcb->ws_gc); in rrpc_lun_gc()
464 struct rrpc_block_gc *gcb = container_of(work, struct rrpc_block_gc, in rrpc_gc_queue() local
466 struct rrpc *rrpc = gcb->rrpc; in rrpc_gc_queue()
467 struct rrpc_block *rblk = gcb->rblk; in rrpc_gc_queue()
475 mempool_free(gcb, rrpc->gcb_pool); in rrpc_gc_queue()
609 struct rrpc_block_gc *gcb; in rrpc_run_gc() local
611 gcb = mempool_alloc(rrpc->gcb_pool, GFP_ATOMIC); in rrpc_run_gc()
612 if (!gcb) { in rrpc_run_gc()
617 gcb->rrpc = rrpc; in rrpc_run_gc()
618 gcb->rblk = rblk; in rrpc_run_gc()
620 INIT_WORK(&gcb->ws_gc, rrpc_gc_queue); in rrpc_run_gc()
621 queue_work(rrpc->kgc_wq, &gcb->ws_gc); in rrpc_run_gc()