Lines Matching refs:ring_pages
126 struct page **ring_pages; member
314 page_count(ctx->ring_pages[i])); in aio_free_ring()
315 page = ctx->ring_pages[i]; in aio_free_ring()
318 ctx->ring_pages[i] = NULL; in aio_free_ring()
322 if (ctx->ring_pages && ctx->ring_pages != ctx->internal_pages) { in aio_free_ring()
323 kfree(ctx->ring_pages); in aio_free_ring()
324 ctx->ring_pages = NULL; in aio_free_ring()
419 if (ctx->ring_pages[idx] != old) in aio_migratepage()
443 BUG_ON(ctx->ring_pages[idx] != old); in aio_migratepage()
444 ctx->ring_pages[idx] = new; in aio_migratepage()
494 ctx->ring_pages = ctx->internal_pages; in aio_setup_ring()
496 ctx->ring_pages = kcalloc(nr_pages, sizeof(struct page *), in aio_setup_ring()
498 if (!ctx->ring_pages) { in aio_setup_ring()
515 ctx->ring_pages[i] = page; in aio_setup_ring()
548 ring = kmap_atomic(ctx->ring_pages[0]); in aio_setup_ring()
557 flush_dcache_page(ctx->ring_pages[0]); in aio_setup_ring()
666 ring = kmap_atomic(ctx->ring_pages[0]); in ioctx_add_table()
1013 ring = kmap_atomic(ctx->ring_pages[0]); in user_refill_reqs_available()
1121 ev_page = kmap_atomic(ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]); in aio_complete()
1127 flush_dcache_page(ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]); in aio_complete()
1140 ring = kmap_atomic(ctx->ring_pages[0]); in aio_complete()
1144 flush_dcache_page(ctx->ring_pages[0]); in aio_complete()
1203 ring = kmap_atomic(ctx->ring_pages[0]); in aio_read_events_ring()
1232 page = ctx->ring_pages[pos / AIO_EVENTS_PER_PAGE]; in aio_read_events_ring()
1253 ring = kmap_atomic(ctx->ring_pages[0]); in aio_read_events_ring()
1256 flush_dcache_page(ctx->ring_pages[0]); in aio_read_events_ring()