Lines Matching refs:ring_pages
120 struct page **ring_pages; member
311 page_count(ctx->ring_pages[i])); in aio_free_ring()
312 page = ctx->ring_pages[i]; in aio_free_ring()
315 ctx->ring_pages[i] = NULL; in aio_free_ring()
319 if (ctx->ring_pages && ctx->ring_pages != ctx->internal_pages) { in aio_free_ring()
320 kfree(ctx->ring_pages); in aio_free_ring()
321 ctx->ring_pages = NULL; in aio_free_ring()
416 if (ctx->ring_pages[idx] != old) in aio_migratepage()
440 BUG_ON(ctx->ring_pages[idx] != old); in aio_migratepage()
441 ctx->ring_pages[idx] = new; in aio_migratepage()
491 ctx->ring_pages = ctx->internal_pages; in aio_setup_ring()
493 ctx->ring_pages = kcalloc(nr_pages, sizeof(struct page *), in aio_setup_ring()
495 if (!ctx->ring_pages) { in aio_setup_ring()
512 ctx->ring_pages[i] = page; in aio_setup_ring()
545 ring = kmap_atomic(ctx->ring_pages[0]); in aio_setup_ring()
554 flush_dcache_page(ctx->ring_pages[0]); in aio_setup_ring()
656 ring = kmap_atomic(ctx->ring_pages[0]); in ioctx_add_table()
1003 ring = kmap_atomic(ctx->ring_pages[0]); in user_refill_reqs_available()
1104 ev_page = kmap_atomic(ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]); in aio_complete()
1110 flush_dcache_page(ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]); in aio_complete()
1123 ring = kmap_atomic(ctx->ring_pages[0]); in aio_complete()
1127 flush_dcache_page(ctx->ring_pages[0]); in aio_complete()
1188 ring = kmap_atomic(ctx->ring_pages[0]); in aio_read_events_ring()
1217 page = ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]; in aio_read_events_ring()
1238 ring = kmap_atomic(ctx->ring_pages[0]); in aio_read_events_ring()
1241 flush_dcache_page(ctx->ring_pages[0]); in aio_read_events_ring()