Lines Matching refs:iocb
2277 static ssize_t ocfs2_file_write_iter(struct kiocb *iocb, in ocfs2_file_write_iter() argument
2284 struct file *file = iocb->ki_filp; in ocfs2_file_write_iter()
2290 int append_write = ((iocb->ki_pos + count) >= in ocfs2_file_write_iter()
2292 int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0; in ocfs2_file_write_iter()
2293 int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0; in ocfs2_file_write_iter()
2353 ret = generic_write_checks(iocb, from); in ocfs2_file_write_iter()
2361 ret = ocfs2_prepare_inode_for_write(file, iocb->ki_pos, count, !nowait); in ocfs2_file_write_iter()
2368 if (direct_io && !is_sync_kiocb(iocb) && in ocfs2_file_write_iter()
2369 ocfs2_is_io_unaligned(inode, count, iocb->ki_pos)) { in ocfs2_file_write_iter()
2373 saved_ki_complete = xchg(&iocb->ki_complete, NULL); in ocfs2_file_write_iter()
2377 ocfs2_iocb_set_rw_locked(iocb, rw_level); in ocfs2_file_write_iter()
2379 written = __generic_file_write_iter(iocb, from); in ocfs2_file_write_iter()
2392 if ((written == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) { in ocfs2_file_write_iter()
2402 iocb->ki_pos - written, in ocfs2_file_write_iter()
2403 iocb->ki_pos - 1); in ocfs2_file_write_iter()
2415 iocb->ki_pos - written, in ocfs2_file_write_iter()
2416 iocb->ki_pos - 1); in ocfs2_file_write_iter()
2421 xchg(&iocb->ki_complete, saved_ki_complete); in ocfs2_file_write_iter()
2434 static ssize_t ocfs2_file_read_iter(struct kiocb *iocb, in ocfs2_file_read_iter() argument
2438 struct file *filp = iocb->ki_filp; in ocfs2_file_read_iter()
2440 int direct_io = iocb->ki_flags & IOCB_DIRECT ? 1 : 0; in ocfs2_file_read_iter()
2441 int nowait = iocb->ki_flags & IOCB_NOWAIT ? 1 : 0; in ocfs2_file_read_iter()
2476 ocfs2_iocb_set_rw_locked(iocb, rw_level); in ocfs2_file_read_iter()
2497 ret = generic_file_read_iter(iocb, to); in ocfs2_file_read_iter()
2504 if (ret == -EIOCBQUEUED || !ocfs2_iocb_is_rw_locked(iocb)) { in ocfs2_file_read_iter()