Home
last modified time | relevance | path

Searched refs:f_flags (Results 1 – 25 of 57) sorted by relevance

123

/fs/
Dstatfs.c92 buf->f_flags = calculate_f_flags(path->mnt); in vfs_statfs()
161 buf.f_flags = st->f_flags; in do_statfs_native()
185 buf.f_flags = st->f_flags; in do_statfs64()
295 buf.f_flags = kbuf->f_flags; in put_compat_statfs()
342 buf.f_flags = kbuf->f_flags; in put_compat_statfs64()
Dfcntl.c45 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) in setfl()
49 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) in setfl()
73 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) { in setfl()
81 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); in setfl()
353 err = filp->f_flags; in do_fcntl()
897 filp->f_flags &= ~FASYNC; in fasync_remove_entry()
950 filp->f_flags |= FASYNC; in fasync_insert_entry()
Dsplice.c972 if (unlikely(out->f_flags & O_APPEND)) in do_splice_direct()
1051 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_splice()
1068 if (unlikely(out->f_flags & O_APPEND)) in do_splice()
1075 if (in->f_flags & O_NONBLOCK) in do_splice()
1101 if (out->f_flags & O_NONBLOCK) in do_splice()
1680 if ((in->f_flags | out->f_flags) & O_NONBLOCK) in do_tee()
Dopen.c173 if (f.file->f_flags & O_LARGEFILE) in do_sys_ftruncate()
784 if (unlikely(f->f_flags & O_PATH)) { in do_dentry_open()
819 error = break_lease(locks_inode(f), f->f_flags); in do_dentry_open()
841 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open()
846 if (f->f_flags & O_DIRECT) { in do_dentry_open()
1411 if (!(filp->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) in generic_file_open()
Deventfd.c237 if ((file->f_flags & O_NONBLOCK) || in eventfd_read()
290 else if (!(file->f_flags & O_NONBLOCK)) { in eventfd_write()
Dfile_table.c116 f->f_flags = flags; in __alloc_file()
275 if (unlikely(file->f_flags & FASYNC)) { in __fput()
Dpipe.c344 if (filp->f_flags & O_NONBLOCK) { in pipe_read()
400 return (file->f_flags & O_DIRECT) != 0; in is_packetized()
547 if (filp->f_flags & O_NONBLOCK) { in pipe_write()
1140 if ((filp->f_flags & O_NONBLOCK)) { in fifo_open()
1158 if (!is_pipe && (filp->f_flags & O_NONBLOCK) && !pipe->readers) in fifo_open()
Dioctl.c361 filp->f_flags |= flag; in ioctl_fionbio()
363 filp->f_flags &= ~flag; in ioctl_fionbio()
380 if ((flag ^ filp->f_flags) & FASYNC) { in ioctl_fioasync()
Dread_write.c1240 if (in.file->f_flags & O_NONBLOCK) in do_sendfile()
1253 if (out.file->f_flags & O_NONBLOCK) in do_sendfile()
1636 if (!(file->f_flags & O_LARGEFILE)) in generic_write_check_limits()
1701 (file_out->f_flags & O_APPEND)) in generic_file_rw_checks()
/fs/overlayfs/
Dfile.c47 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
69 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
70 realfile, IS_ERR(realfile) ? 0 : realfile->f_flags); in ovl_open_realfile()
84 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
100 file->f_flags = (file->f_flags & ~OVL_SETFL_MASK) | flags; in ovl_change_flags()
129 if (unlikely((file->f_flags ^ real->file->f_flags) & ~OVL_OPEN_FLAGS)) in ovl_real_fdget_meta()
130 return ovl_change_flags(real->file, file->f_flags); in ovl_real_fdget_meta()
152 err = ovl_maybe_copy_up(file_dentry(file), file->f_flags); in ovl_open()
157 file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in ovl_open()
224 if (file->f_flags & O_NOATIME) in ovl_file_accessed()
/fs/vboxsf/
Dfile.c66 if (file->f_flags & O_CREAT) { in vboxsf_file_open()
72 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
78 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
82 switch (file->f_flags & O_ACCMODE) { in vboxsf_file_open()
99 if (file->f_flags & O_APPEND) in vboxsf_file_open()
/fs/proc/
Dfd.c24 int f_flags = 0, ret = -ENOENT; in seq_show() local
42 f_flags = file->f_flags; in seq_show()
44 f_flags |= O_CLOEXEC; in seq_show()
58 (long long)file->f_pos, f_flags, in seq_show()
Dkmsg.c37 if ((file->f_flags & O_NONBLOCK) && in kmsg_read()
/fs/coda/
Dfile.c203 unsigned short flags = coda_file->f_flags & (~O_EXCL); in coda_open()
221 host_file->f_flags |= coda_file->f_flags & (O_APPEND | O_SYNC); in coda_open()
236 unsigned short flags = (coda_file->f_flags) & (~O_EXCL); in coda_release()
/fs/notify/fanotify/
Dfanotify_user.c225 client_fd = get_unused_fd_flags(group->fanotify_data.f_flags); in create_fd()
234 group->fanotify_data.f_flags | FMODE_NONOTIFY, in create_fd()
682 if (file->f_flags & O_NONBLOCK) in fanotify_read()
1147 int f_flags, fd; in SYSCALL_DEFINE2() local
1210 f_flags = O_RDWR | FMODE_NONOTIFY; in SYSCALL_DEFINE2()
1212 f_flags |= O_CLOEXEC; in SYSCALL_DEFINE2()
1214 f_flags |= O_NONBLOCK; in SYSCALL_DEFINE2()
1248 group->fanotify_data.f_flags = event_f_flags; in SYSCALL_DEFINE2()
1287 fd = anon_inode_getfd("[fanotify]", &fanotify_fops, group, f_flags); in SYSCALL_DEFINE2()
/fs/9p/
Dvfs_file.c56 omode = v9fs_open_to_dotl_flags(file->f_flags); in v9fs_file_open()
58 omode = v9fs_uflags2omode(file->f_flags, in v9fs_file_open()
71 if ((file->f_flags & O_APPEND) && in v9fs_file_open()
80 ((file->f_flags & O_ACCMODE) != O_RDONLY)) { in v9fs_file_open()
376 if (iocb->ki_filp->f_flags & O_NONBLOCK) in v9fs_file_read_iter()
/fs/ecryptfs/
Dfile.c226 if ((ecryptfs_inode_to_private(inode)->lower_file->f_flags & O_ACCMODE) in ecryptfs_open()
227 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
277 file->f_flags, current_cred()); in ecryptfs_dir_open()
/fs/cifs/
Dfile.c104 struct super_block *sb, int mode, unsigned int f_flags, in cifs_posix_open() argument
130 posix_flags = cifs_posix_convert_flags(f_flags); in cifs_posix_open()
167 struct cifs_tcon *tcon, unsigned int f_flags, __u32 *oplock, in cifs_nt_open() argument
181 desired_access = cifs_convert_flags(f_flags); in cifs_nt_open()
207 disposition = cifs_get_disposition(f_flags); in cifs_nt_open()
216 if (f_flags & O_SYNC) in cifs_nt_open()
219 if (f_flags & O_DIRECT) in cifs_nt_open()
311 cfile->f_flags = file->f_flags; in cifs_new_fileinfo()
555 inode, file->f_flags, full_path); in cifs_open()
557 if (file->f_flags & O_DIRECT && in cifs_open()
[all …]
/fs/autofs/
Dautofs_i.h216 pipe->f_flags |= O_DIRECT; in autofs_prepare_pipe()
218 pipe->f_flags &= ~O_NONBLOCK; in autofs_prepare_pipe()
/fs/ocfs2/dlmfs/
Ddlmfs.c127 file->f_flags); in dlmfs_file_open()
129 status = dlmfs_decode_open_flags(file->f_flags, &level, &flags); in dlmfs_file_open()
135 file->f_flags &= ~O_APPEND; in dlmfs_file_open()
/fs/notify/
Dfdinfo.c141 group->fanotify_data.f_flags); in fanotify_show_fdinfo()
/fs/orangefs/
Ddevorangefs-req.c132 if (!(file->f_flags & O_NONBLOCK)) { in orangefs_devreq_open()
169 if (!(file->f_flags & O_NONBLOCK)) { in orangefs_devreq_read()
/fs/nfs/
Dfile.c72 res = nfs_check_flags(filp->f_flags); in nfs_file_open()
106 if (filp->f_flags & O_DIRECT) in nfs_revalidate_file_size()
/fs/xfs/
Dxfs_file.c1085 if (file->f_flags & O_DSYNC) in xfs_file_fallocate()
1125 if (filp->f_flags & (__O_SYNC | O_DSYNC)) in xfs_file_sync_writes()
1204 if (!(file->f_flags & O_LARGEFILE) && i_size_read(inode) > MAX_NON_LFS) in xfs_file_open()
/fs/fuse/
Dfile.c189 struct fuse_file *ff = fuse_file_open(fm, nodeid, file->f_flags, isdir); in fuse_do_open()
223 if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) { in fuse_finish_open()
244 bool is_wb_truncate = (file->f_flags & O_TRUNC) && in fuse_open_common()
247 bool dax_truncate = (file->f_flags & O_TRUNC) && in fuse_open_common()
293 if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) in fuse_open_common()
369 fuse_file_release(file_inode(file), file->private_data, file->f_flags, in fuse_release_common()
667 ia->read.in.flags = file->f_flags; in fuse_read_args_fill()
1111 unsigned int flags = iocb->ki_filp->f_flags; in fuse_write_flags()

123