Lines Matching defs:file
3 * linux/fs/fat/file.c
7 * regular file handling primitives for fat-based filesystems
21 static long fat_fallocate(struct file *file, int mode,
35 static int fat_ioctl_set_attributes(struct file *file, u32 __user *user_attr)
37 struct inode *inode = file_inode(file);
48 err = mnt_want_write_file(file);
91 * module, just because it maps to a file mode.
93 err = security_inode_setattr(file->f_path.dentry, &ia);
98 err = fat_setattr(file->f_path.dentry, &ia);
102 fsnotify_change(file->f_path.dentry, ia.ia_valid);
114 mnt_drop_write_file(file);
156 long fat_generic_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
175 static int fat_file_release(struct inode *inode, struct file *filp)
185 int fat_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
232 * Opencode syncing since we don't have a file open to use
253 * Preallocate space for a file. This implements fat's fallocate file
259 static long fat_fallocate(struct file *file, int mode,
263 loff_t mm_bytes; /* Number of bytes to be allocated for file */
265 struct inode *inode = file->f_mapping->host;
323 /* First, we write the new file size. */
385 * This protects against truncating a file bigger than it was then
466 /* valid file mode bits */
492 * Expand the file. Since inode_setattr() updates ->i_size