Lines Matching defs:open
844 struct io_open open;
4174 /* open.how should be already initialised */
4175 if (!(req->open.how.flags & O_PATH) && force_o_largefile())
4176 req->open.how.flags |= O_LARGEFILE;
4178 req->open.dfd = READ_ONCE(sqe->fd);
4180 req->open.filename = getname(fname);
4181 if (IS_ERR(req->open.filename)) {
4182 ret = PTR_ERR(req->open.filename);
4183 req->open.filename = NULL;
4187 req->open.file_slot = READ_ONCE(sqe->file_index);
4188 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC))
4191 req->open.nofile = rlimit(RLIMIT_NOFILE);
4201 req->open.how = build_open_how(flags, mode);
4216 ret = copy_struct_from_user(&req->open.how, sizeof(req->open.how), how,
4229 bool fixed = !!req->open.file_slot;
4232 ret = build_open_flags(&req->open.how, &op);
4236 resolve_nonblock = req->open.how.resolve & RESOLVE_CACHED;
4239 * Don't bother trying for O_TRUNC, O_CREAT, or O_TMPFILE open,
4244 if (req->open.how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE))
4251 ret = __get_unused_fd_flags(req->open.how.flags, req->open.nofile);
4256 file = do_filp_open(req->open.dfd, req->open.filename, &op);
4282 req->open.file_slot - 1);
4284 putname(req->open.filename);
6717 if (req->open.filename)
6718 putname(req->open.filename);