Lines Matching refs:file
55 int file_fsync(struct file *filp, struct dentry *dentry, int datasync) in file_fsync()
91 int vfs_fsync(struct file *file, struct dentry *dentry, int datasync) in vfs_fsync() argument
102 if (file) { in vfs_fsync()
103 mapping = file->f_mapping; in vfs_fsync()
104 fop = file->f_op; in vfs_fsync()
122 err = fop->fsync(file, dentry, datasync); in vfs_fsync()
136 struct file *file; in do_fsync() local
139 file = fget(fd); in do_fsync()
140 if (file) { in do_fsync()
141 ret = vfs_fsync(file, file->f_path.dentry, datasync); in do_fsync()
142 fput(file); in do_fsync()
208 struct file *file; in SYSCALL_DEFINE() local
249 file = fget_light(fd, &fput_needed); in SYSCALL_DEFINE()
250 if (!file) in SYSCALL_DEFINE()
253 i_mode = file->f_path.dentry->d_inode->i_mode; in SYSCALL_DEFINE()
259 ret = do_sync_mapping_range(file->f_mapping, offset, endbyte, flags); in SYSCALL_DEFINE()
261 fput_light(file, fput_needed); in SYSCALL_DEFINE()