Lines Matching refs:bv
963 if (ctx->bv) { in cifs_aio_ctx_release()
968 set_page_dirty(ctx->bv[i].bv_page); in cifs_aio_ctx_release()
969 put_page(ctx->bv[i].bv_page); in cifs_aio_ctx_release()
971 kvfree(ctx->bv); in cifs_aio_ctx_release()
992 struct bio_vec *bv = NULL; in setup_aio_ctx_iter() local
1001 if (array_size(max_pages, sizeof(*bv)) <= CIFS_AIO_KMALLOC_LIMIT) in setup_aio_ctx_iter()
1002 bv = kmalloc_array(max_pages, sizeof(*bv), GFP_KERNEL); in setup_aio_ctx_iter()
1004 if (!bv) { in setup_aio_ctx_iter()
1005 bv = vmalloc(array_size(max_pages, sizeof(*bv))); in setup_aio_ctx_iter()
1006 if (!bv) in setup_aio_ctx_iter()
1016 kvfree(bv); in setup_aio_ctx_iter()
1049 bv[npages + i].bv_page = pages[i]; in setup_aio_ctx_iter()
1050 bv[npages + i].bv_offset = start; in setup_aio_ctx_iter()
1051 bv[npages + i].bv_len = len - start; in setup_aio_ctx_iter()
1060 ctx->bv = bv; in setup_aio_ctx_iter()
1063 iov_iter_bvec(&ctx->iter, rw, ctx->bv, npages, ctx->len); in setup_aio_ctx_iter()