Lines Matching refs:ki_flags
469 if (rw->kiocb.ki_flags & IOCB_WRITE) { in io_req_io_end()
514 if ((kiocb->ki_flags & IOCB_DIO_CALLER_COMP) && kiocb->dio_complete) { in io_req_rw_complete()
534 if (!kiocb->dio_complete || !(kiocb->ki_flags & IOCB_DIO_CALLER_COMP)) { in io_complete_rw()
548 if (kiocb->ki_flags & IOCB_WRITE) in io_complete_rw_iopoll()
642 if (kiocb->ki_flags & IOCB_HIPRI) in loop_rw_iter()
644 if ((kiocb->ki_flags & IOCB_NOWAIT) && in loop_rw_iter()
715 rw->kiocb.ki_flags &= ~IOCB_WAITQ; in io_async_buf_func()
745 if (kiocb->ki_flags & (IOCB_DIRECT | IOCB_HIPRI)) in io_rw_should_retry()
760 kiocb->ki_flags |= IOCB_WAITQ; in io_rw_should_retry()
761 kiocb->ki_flags &= ~IOCB_NOWAIT; in io_rw_should_retry()
798 kiocb->ki_flags = file->f_iocb_flags; in io_rw_init_file()
802 kiocb->ki_flags |= IOCB_ALLOC_CACHE; in io_rw_init_file()
809 if (kiocb->ki_flags & IOCB_NOWAIT || in io_rw_init_file()
814 if (!(kiocb->ki_flags & IOCB_DIRECT) || !file->f_op->iopoll) in io_rw_init_file()
818 kiocb->ki_flags |= IOCB_HIPRI; in io_rw_init_file()
822 if (kiocb->ki_flags & IOCB_HIPRI) in io_rw_init_file()
853 kiocb->ki_flags |= IOCB_NOWAIT; in __io_read()
856 kiocb->ki_flags &= ~IOCB_NOWAIT; in __io_read()
916 kiocb->ki_flags &= ~IOCB_WAITQ; in __io_read()
931 kiocb->ki_flags &= ~IOCB_WAITQ; in __io_read()
1024 if (!(kiocb->ki_flags & IOCB_NOWAIT)) { in io_kiocb_start_write()
1056 if (!(kiocb->ki_flags & IOCB_DIRECT) && in io_write()
1061 kiocb->ki_flags |= IOCB_NOWAIT; in io_write()
1064 kiocb->ki_flags &= ~IOCB_NOWAIT; in io_write()
1075 kiocb->ki_flags |= IOCB_WRITE; in io_write()
1093 if (ret2 == -EOPNOTSUPP && (kiocb->ki_flags & IOCB_NOWAIT)) in io_write()
1115 if (kiocb->ki_flags & IOCB_WRITE) in io_write()
1124 if (kiocb->ki_flags & IOCB_WRITE) in io_write()