Lines Matching refs:curr
169 int curr; member
644 if (sctx->curr != -1) { in scrub_free_ctx()
645 struct scrub_bio *sbio = sctx->bios[sctx->curr]; in scrub_free_ctx()
686 sctx->curr = -1; in scrub_setup_ctx()
2297 if (sctx->curr == -1) in scrub_submit()
2300 sbio = sctx->bios[sctx->curr]; in scrub_submit()
2301 sctx->curr = -1; in scrub_submit()
2317 while (sctx->curr == -1) { in scrub_add_page_to_rd_bio()
2319 sctx->curr = sctx->first_free; in scrub_add_page_to_rd_bio()
2320 if (sctx->curr != -1) { in scrub_add_page_to_rd_bio()
2321 sctx->first_free = sctx->bios[sctx->curr]->next_free; in scrub_add_page_to_rd_bio()
2322 sctx->bios[sctx->curr]->next_free = -1; in scrub_add_page_to_rd_bio()
2323 sctx->bios[sctx->curr]->page_count = 0; in scrub_add_page_to_rd_bio()
2330 sbio = sctx->bios[sctx->curr]; in scrub_add_page_to_rd_bio()
2977 struct scrub_page *curr, *next; in scrub_free_parity() local
2988 list_for_each_entry_safe(curr, next, &sparity->spages, list) { in scrub_free_parity()
2989 list_del_init(&curr->list); in scrub_free_parity()
2990 scrub_page_put(curr); in scrub_free_parity()