Lines Matching refs:open_flag
3444 int open_flag, umode_t mode) in atomic_open() argument
3451 open_flag |= O_DIRECTORY; in atomic_open()
3456 open_to_namei_flags(open_flag), mode); in atomic_open()
3504 int open_flag = op->open_flag; in lookup_open() local
3538 if (open_flag & O_CREAT) in lookup_open()
3551 open_flag &= ~O_TRUNC; in lookup_open()
3553 if (open_flag & O_CREAT) { in lookup_open()
3554 if (open_flag & O_EXCL) in lookup_open()
3555 open_flag &= ~O_TRUNC; in lookup_open()
3564 open_flag &= ~O_CREAT; in lookup_open()
3566 dentry = atomic_open(nd, dentry, file, open_flag, mode); in lookup_open()
3587 if (!dentry->d_inode && (open_flag & O_CREAT)) { in lookup_open()
3596 mode, open_flag & O_EXCL); in lookup_open()
3616 static struct dentry *lookup_fast_for_open(struct nameidata *nd, int open_flag) in lookup_fast_for_open() argument
3620 if (open_flag & O_CREAT) { in lookup_fast_for_open()
3625 if (open_flag & O_EXCL) in lookup_fast_for_open()
3636 if (open_flag & O_CREAT) { in lookup_fast_for_open()
3651 int open_flag = op->open_flag; in open_last_lookups() local
3665 dentry = lookup_fast_for_open(nd, open_flag); in open_last_lookups()
3672 if (!(open_flag & O_CREAT)) { in open_last_lookups()
3682 if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) { in open_last_lookups()
3690 if (open_flag & O_CREAT) in open_last_lookups()
3701 if (open_flag & O_CREAT) in open_last_lookups()
3734 int open_flag = op->open_flag; in do_open() local
3747 if (open_flag & O_CREAT) { in do_open()
3748 if ((open_flag & O_EXCL) && !(file->f_mode & FMODE_CREATED)) in do_open()
3764 open_flag &= ~O_TRUNC; in do_open()
3766 } else if (d_is_reg(nd->path.dentry) && open_flag & O_TRUNC) { in do_open()
3772 error = may_open(idmap, &nd->path, acc_mode, open_flag); in do_open()
3811 int open_flag = file->f_flags; in vfs_tmpfile() local
3836 if (!(open_flag & O_EXCL)) { in vfs_tmpfile()
3859 umode_t mode, int open_flag, in kernel_tmpfile_open() argument
3865 file = alloc_empty_file_noaccount(open_flag, cred); in kernel_tmpfile_open()
3919 file = alloc_empty_file(op->open_flag, current_cred()); in path_openat()