• Home
  • Raw
  • Download

Lines Matching refs:pblk

75 	struct pblk *pblk = container_of(rb, struct pblk, rwb);  in pblk_rb_init()  local
165 pblk_rl_init(&pblk->rl, rb->nr_entries, threshold); in pblk_rb_init()
239 struct pblk *pblk = container_of(rb, struct pblk, rwb); in __pblk_rb_update_l2p() local
259 pblk_update_map_dev(pblk, w_ctx->lba, w_ctx->ppa, in __pblk_rb_update_l2p()
262 line = pblk_ppa_to_line(pblk, w_ctx->ppa); in __pblk_rb_update_l2p()
269 pblk_rl_out(&pblk->rl, user_io, gc_io); in __pblk_rb_update_l2p()
340 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_write_entry_user() local
353 pblk_update_map_cache(pblk, w_ctx.lba, entry->cacheline); in pblk_rb_write_entry_user()
364 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_write_entry_gc() local
377 if (!pblk_update_map_gc(pblk, w_ctx.lba, entry->cacheline, line, paddr)) in pblk_rb_write_entry_gc()
454 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_flush() local
460 pblk_write_kick(pblk); in pblk_rb_flush()
476 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_may_write_flush() local
478 atomic64_inc(&pblk->nr_flush); in pblk_rb_may_write_flush()
479 if (pblk_rb_flush_point_set(&pblk->rwb, bio, mem)) in pblk_rb_may_write_flush()
497 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_may_write_user() local
501 io_ret = pblk_rl_user_may_insert(&pblk->rl, nr_entries); in pblk_rb_may_write_user()
512 pblk_rl_user_in(&pblk->rl, nr_entries); in pblk_rb_may_write_user()
524 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_may_write_gc() local
527 if (!pblk_rl_gc_may_insert(&pblk->rl, nr_entries)) { in pblk_rb_may_write_gc()
537 pblk_rl_gc_in(&pblk->rl, nr_entries); in pblk_rb_may_write_gc()
554 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_read_to_bio() local
555 struct request_queue *q = pblk->dev->q; in pblk_rb_read_to_bio()
570 pad += (pblk->min_write_pgs - pblk->min_write_pgs_data); in pblk_rb_read_to_bio()
591 pblk_err(pblk, "could not allocate write bio page\n"); in pblk_rb_read_to_bio()
601 pblk_err(pblk, "could not add page to write bio\n"); in pblk_rb_read_to_bio()
619 if (pblk_bio_add_pages(pblk, bio, GFP_KERNEL, pad)) { in pblk_rb_read_to_bio()
620 pblk_err(pblk, "could not pad page in write bio\n"); in pblk_rb_read_to_bio()
624 if (pad < pblk->min_write_pgs) in pblk_rb_read_to_bio()
625 atomic64_inc(&pblk->pad_dist[pad - 1]); in pblk_rb_read_to_bio()
627 pblk_warn(pblk, "padding more than min. sectors\n"); in pblk_rb_read_to_bio()
629 atomic64_add(pad, &pblk->pad_wa); in pblk_rb_read_to_bio()
633 atomic_long_add(pad, &pblk->padded_writes); in pblk_rb_read_to_bio()
647 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_copy_to_bio() local
666 spin_lock(&pblk->trans_lock); in pblk_rb_copy_to_bio()
667 l2p_ppa = pblk_trans_map_get(pblk, lba); in pblk_rb_copy_to_bio()
668 spin_unlock(&pblk->trans_lock); in pblk_rb_copy_to_bio()
811 struct pblk *pblk = container_of(rb, struct pblk, rwb); in pblk_rb_sysfs() local
817 list_for_each_entry(c, &pblk->compl_list, list) in pblk_rb_sysfs()