Lines Matching refs:kioctx

83 	struct kioctx __rcu	*table[] __counted_by(nr);
95 struct kioctx {
205 struct kioctx *ki_ctx;
261 static struct file *aio_private_file(struct kioctx *ctx, loff_t nr_pages)
303 kioctx_cachep = KMEM_CACHE(kioctx,SLAB_HWCACHE_ALIGN|SLAB_PANIC);
309 static void put_aio_ring_file(struct kioctx *ctx)
317 /* Prevent further access to the kioctx from migratepages */
328 static void aio_free_ring(struct kioctx *ctx)
333 * accesses to the kioctx from page migration.
368 struct kioctx *ctx;
410 struct kioctx *ctx;
425 /* mapping->private_lock here protects against the kioctx teardown. */
491 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events)
594 struct kioctx *ctx = req->ki_ctx;
621 struct kioctx *ctx = container_of(to_rcu_work(work), struct kioctx,
634 struct kioctx *ctx = container_of(ref, struct kioctx, reqs);
646 * When this function runs, the kioctx has been removed from the "hash table"
652 struct kioctx *ctx = container_of(ref, struct kioctx, users);
670 static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm)
687 /* While kioctx setup is in progress,
712 old->nr * sizeof(struct kioctx *));
736 static struct kioctx *ioctx_alloc(unsigned nr_events)
739 struct kioctx *ctx;
849 * the rapid destruction of the kioctx.
851 static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx,
909 struct kioctx *ctx =
937 static void put_reqs_available(struct kioctx *ctx, unsigned nr)
954 static bool __get_reqs_available(struct kioctx *ctx)
988 static void refill_reqs_available(struct kioctx *ctx, unsigned head,
1017 static void user_refill_reqs_available(struct kioctx *ctx)
1042 static bool get_reqs_available(struct kioctx *ctx)
1057 static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx)
1078 static struct kioctx *lookup_ioctx(unsigned long ctx_id)
1082 struct kioctx *ctx, *ret = NULL;
1121 struct kioctx *ctx = iocb->ki_ctx;
1202 static long aio_read_events_ring(struct kioctx *ctx,
1279 static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr,
1296 static long read_events(struct kioctx *ctx, long min_nr, long nr,
1340 struct kioctx *ioctx = NULL;
1371 struct kioctx *ioctx = NULL;
1409 struct kioctx *ioctx = lookup_ioctx(ctx);
1439 struct kioctx *ctx = iocb->ki_ctx;
1684 struct kioctx *ctx = iocb->ki_ctx;
1769 struct kioctx *ctx = iocb->ki_ctx;
1851 struct kioctx *ctx = aiocb->ki_ctx;
1924 static int __io_submit_one(struct kioctx *ctx, const struct iocb *iocb,
1978 static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
2040 struct kioctx *ctx;
2082 struct kioctx *ctx;
2134 struct kioctx *ctx;
2181 struct kioctx *ioctx = lookup_ioctx(ctx_id);