Lines Matching refs:iocb
26 struct kiocb *iocb; member
66 if (dio->iocb->ki_flags & IOCB_HIPRI) in iomap_dio_submit_bio()
67 bio_set_polled(bio, dio->iocb); in iomap_dio_submit_bio()
76 struct kiocb *iocb = dio->iocb; in iomap_dio_complete() local
77 struct inode *inode = file_inode(iocb->ki_filp); in iomap_dio_complete()
78 loff_t offset = iocb->ki_pos; in iomap_dio_complete()
82 ret = dops->end_io(iocb, dio->size, ret, dio->flags); in iomap_dio_complete()
90 iocb->ki_pos += ret; in iomap_dio_complete()
112 dio_warn_stale_pagecache(iocb->ki_filp); in iomap_dio_complete()
120 ret = generic_write_sync(iocb, ret); in iomap_dio_complete()
122 inode_dio_end(file_inode(iocb->ki_filp)); in iomap_dio_complete()
131 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work() local
133 iocb->ki_complete(iocb, iomap_dio_complete(dio), 0); in iomap_dio_complete_work()
160 struct inode *inode = file_inode(dio->iocb->ki_filp); in iomap_dio_bio_end_io()
266 bio->bi_write_hint = dio->iocb->ki_hint; in iomap_dio_bio_actor()
267 bio->bi_ioprio = dio->iocb->ki_ioprio; in iomap_dio_bio_actor()
394 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw() argument
397 struct address_space *mapping = iocb->ki_filp->f_mapping; in iomap_dio_rw()
398 struct inode *inode = file_inode(iocb->ki_filp); in iomap_dio_rw()
400 loff_t pos = iocb->ki_pos, start = pos; in iomap_dio_rw()
401 loff_t end = iocb->ki_pos + count - 1, ret = 0; in iomap_dio_rw()
403 bool wait_for_completion = is_sync_kiocb(iocb); in iomap_dio_rw()
416 dio->iocb = iocb; in iomap_dio_rw()
440 if (iocb->ki_flags & IOCB_DSYNC) in iomap_dio_rw()
449 if ((iocb->ki_flags & (IOCB_DSYNC | IOCB_SYNC)) == IOCB_DSYNC) in iomap_dio_rw()
453 if (iocb->ki_flags & IOCB_NOWAIT) { in iomap_dio_rw()
474 dio_warn_stale_pagecache(iocb->ki_filp); in iomap_dio_rw()
515 WRITE_ONCE(iocb->ki_cookie, dio->submit.cookie); in iomap_dio_rw()
516 WRITE_ONCE(iocb->private, dio->submit.last_queue); in iomap_dio_rw()
543 if (!(iocb->ki_flags & IOCB_HIPRI) || in iomap_dio_rw()