Lines Matching refs:iocb

18 	struct kiocb		iocb;  member
37 fput(ki->iocb.ki_filp); in cachefiles_put_kiocb()
45 static void cachefiles_read_complete(struct kiocb *iocb, long ret) in cachefiles_read_complete() argument
47 struct cachefiles_kiocb *ki = container_of(iocb, struct cachefiles_kiocb, iocb); in cachefiles_read_complete()
48 struct inode *inode = file_inode(ki->iocb.ki_filp); in cachefiles_read_complete()
138 ki->iocb.ki_filp = file; in cachefiles_read()
139 ki->iocb.ki_pos = start_pos + skipped; in cachefiles_read()
140 ki->iocb.ki_flags = IOCB_DIRECT; in cachefiles_read()
141 ki->iocb.ki_ioprio = get_current_ioprio(); in cachefiles_read()
150 ki->iocb.ki_complete = cachefiles_read_complete; in cachefiles_read()
152 get_file(ki->iocb.ki_filp); in cachefiles_read()
155 trace_cachefiles_read(object, file_inode(file), ki->iocb.ki_pos, len - skipped); in cachefiles_read()
159 ret = vfs_iocb_iter_read(file, &ki->iocb, iter); in cachefiles_read()
176 cachefiles_read_complete(&ki->iocb, ret); in cachefiles_read()
254 static void cachefiles_write_complete(struct kiocb *iocb, long ret) in cachefiles_write_complete() argument
256 struct cachefiles_kiocb *ki = container_of(iocb, struct cachefiles_kiocb, iocb); in cachefiles_write_complete()
258 struct inode *inode = file_inode(ki->iocb.ki_filp); in cachefiles_write_complete()
262 kiocb_end_write(iocb); in cachefiles_write_complete()
306 ki->iocb.ki_filp = file; in __cachefiles_write()
307 ki->iocb.ki_pos = start_pos; in __cachefiles_write()
308 ki->iocb.ki_flags = IOCB_DIRECT | IOCB_WRITE; in __cachefiles_write()
309 ki->iocb.ki_ioprio = get_current_ioprio(); in __cachefiles_write()
319 ki->iocb.ki_complete = cachefiles_write_complete; in __cachefiles_write()
322 kiocb_start_write(&ki->iocb); in __cachefiles_write()
324 get_file(ki->iocb.ki_filp); in __cachefiles_write()
327 trace_cachefiles_write(object, file_inode(file), ki->iocb.ki_pos, len); in __cachefiles_write()
331 ret = vfs_iocb_iter_write(file, &ki->iocb, iter); in __cachefiles_write()
348 cachefiles_write_complete(&ki->iocb, ret); in __cachefiles_write()