Lines Matching refs:kiocb
242 static void wait_on_retry_sync_kiocb(struct kiocb *iocb) in wait_on_retry_sync_kiocb()
255 struct kiocb kiocb; in do_sync_read() local
258 init_sync_kiocb(&kiocb, filp); in do_sync_read()
259 kiocb.ki_pos = *ppos; in do_sync_read()
260 kiocb.ki_left = len; in do_sync_read()
263 ret = filp->f_op->aio_read(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_read()
266 wait_on_retry_sync_kiocb(&kiocb); in do_sync_read()
270 ret = wait_on_sync_kiocb(&kiocb); in do_sync_read()
271 *ppos = kiocb.ki_pos; in do_sync_read()
310 struct kiocb kiocb; in do_sync_write() local
313 init_sync_kiocb(&kiocb, filp); in do_sync_write()
314 kiocb.ki_pos = *ppos; in do_sync_write()
315 kiocb.ki_left = len; in do_sync_write()
318 ret = filp->f_op->aio_write(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_write()
321 wait_on_retry_sync_kiocb(&kiocb); in do_sync_write()
325 ret = wait_on_sync_kiocb(&kiocb); in do_sync_write()
326 *ppos = kiocb.ki_pos; in do_sync_write()
489 struct kiocb kiocb; in do_sync_readv_writev() local
492 init_sync_kiocb(&kiocb, filp); in do_sync_readv_writev()
493 kiocb.ki_pos = *ppos; in do_sync_readv_writev()
494 kiocb.ki_left = len; in do_sync_readv_writev()
495 kiocb.ki_nbytes = len; in do_sync_readv_writev()
498 ret = fn(&kiocb, iov, nr_segs, kiocb.ki_pos); in do_sync_readv_writev()
501 wait_on_retry_sync_kiocb(&kiocb); in do_sync_readv_writev()
505 ret = wait_on_sync_kiocb(&kiocb); in do_sync_readv_writev()
506 *ppos = kiocb.ki_pos; in do_sync_readv_writev()