Lines Matching refs:files
238 struct files_struct *files = current->files; in io_close() local
248 spin_lock(&files->file_lock); in io_close()
249 file = files_lookup_fd_locked(files, close->fd); in io_close()
251 spin_unlock(&files->file_lock); in io_close()
257 spin_unlock(&files->file_lock); in io_close()
261 file = file_close_fd_locked(files, close->fd); in io_close()
262 spin_unlock(&files->file_lock); in io_close()
267 ret = filp_close(file, current->files); in io_close()
343 static int io_pipe_fixed(struct io_kiocb *req, struct file **files, in io_pipe_fixed() argument
359 ret = __io_fixed_fd_install(ctx, files[0], slot); in io_pipe_fixed()
363 files[0] = NULL; in io_pipe_fixed()
372 ret = __io_fixed_fd_install(ctx, files[1], slot); in io_pipe_fixed()
376 files[1] = NULL; in io_pipe_fixed()
394 static int io_pipe_fd(struct io_kiocb *req, struct file **files) in io_pipe_fd() argument
410 fd_install(fds[0], files[0]); in io_pipe_fd()
411 fd_install(fds[1], files[1]); in io_pipe_fd()
426 struct file *files[2]; in io_pipe() local
429 ret = create_pipe_files(files, p->flags); in io_pipe()
434 ret = io_pipe_fixed(req, files, issue_flags); in io_pipe()
436 ret = io_pipe_fd(req, files); in io_pipe()
443 if (files[0]) in io_pipe()
444 fput(files[0]); in io_pipe()
445 if (files[1]) in io_pipe()
446 fput(files[1]); in io_pipe()