Lines Matching refs:iocb

20 	struct kiocb		iocb;  member
39 fput(ki->iocb.ki_filp); in cachefiles_put_kiocb()
47 static void cachefiles_read_complete(struct kiocb *iocb, long ret) in cachefiles_read_complete() argument
49 struct cachefiles_kiocb *ki = container_of(iocb, struct cachefiles_kiocb, iocb); in cachefiles_read_complete()
50 struct inode *inode = file_inode(ki->iocb.ki_filp); in cachefiles_read_complete()
140 ki->iocb.ki_filp = file; in cachefiles_read()
141 ki->iocb.ki_pos = start_pos + skipped; in cachefiles_read()
142 ki->iocb.ki_flags = IOCB_DIRECT; in cachefiles_read()
143 ki->iocb.ki_ioprio = get_current_ioprio(); in cachefiles_read()
152 ki->iocb.ki_complete = cachefiles_read_complete; in cachefiles_read()
154 get_file(ki->iocb.ki_filp); in cachefiles_read()
157 trace_cachefiles_read(object, file_inode(file), ki->iocb.ki_pos, len - skipped); in cachefiles_read()
161 ret = vfs_iocb_iter_read(file, &ki->iocb, iter); in cachefiles_read()
178 cachefiles_read_complete(&ki->iocb, ret); in cachefiles_read()
256 static void cachefiles_write_complete(struct kiocb *iocb, long ret) in cachefiles_write_complete() argument
258 struct cachefiles_kiocb *ki = container_of(iocb, struct cachefiles_kiocb, iocb); in cachefiles_write_complete()
260 struct inode *inode = file_inode(ki->iocb.ki_filp); in cachefiles_write_complete()
265 kiocb_end_write(iocb); in cachefiles_write_complete()
309 ki->iocb.ki_filp = file; in __cachefiles_write()
310 ki->iocb.ki_pos = start_pos; in __cachefiles_write()
311 ki->iocb.ki_flags = IOCB_DIRECT | IOCB_WRITE; in __cachefiles_write()
312 ki->iocb.ki_ioprio = get_current_ioprio(); in __cachefiles_write()
322 ki->iocb.ki_complete = cachefiles_write_complete; in __cachefiles_write()
325 get_file(ki->iocb.ki_filp); in __cachefiles_write()
328 trace_cachefiles_write(object, file_inode(file), ki->iocb.ki_pos, len); in __cachefiles_write()
332 ret = vfs_iocb_iter_write(file, &ki->iocb, iter); in __cachefiles_write()
349 cachefiles_write_complete(&ki->iocb, ret); in __cachefiles_write()