Lines Matching refs:file

588  * @file: If non-NULL, the file which is being opened
598 struct file *file,
644 if (file) {
646 error = finish_open(file, dentry, gfs2_open_common);
648 error = finish_no_open(file, NULL);
789 if (file) {
790 file->f_mode |= FMODE_CREATED;
791 error = finish_open(file, dentry, gfs2_open_common);
838 * gfs2_create - Create a file
839 * @dir: The directory in which to create the file
840 * @dentry: The dentry of the new file
841 * @mode: The mode of the new file
856 * @file: File to be opened
863 struct file *file)
891 if (file && S_ISREG(inode->i_mode))
892 error = finish_open(file, dentry, gfs2_open_common);
909 * gfs2_link - Link to a file
1047 * @name: the name of the file
1117 * @dentry: The file itself
1235 * gfs2_mknod - Make a special file
1236 * @dir: The directory in which the special file will reside
1237 * @dentry: The dentry of the special file
1238 * @mode: The mode of the special file
1239 * @dev: The device specification of the special file
1250 * gfs2_atomic_open - Atomically open a file
1253 * @file: The proposed new struct file
1261 struct file *file, unsigned flags,
1270 d = __gfs2_lookup(dir, dentry, file);
1276 if (!(file->f_mode & FMODE_OPENED))
1277 return finish_no_open(file, d);
1288 return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl);
1362 * gfs2_rename - Rename a file
1363 * @odir: Parent directory of old file name
1364 * @odentry: The old dentry of the file
1365 * @ndir: Parent directory of new file name
1366 * @ndentry: The new dentry of the file
1560 /* Remove the target file, if it exists */
1605 * @odir: Parent directory of old file name
1606 * @odentry: The old dentry of the file
1607 * @ndir: Parent directory of new file name
1608 * @ndentry: The new dentry of the file
2090 loff_t gfs2_seek_data(struct file *file, loff_t offset)
2092 struct inode *inode = file->f_mapping->host;
2106 return vfs_setpos(file, ret, inode->i_sb->s_maxbytes);
2109 loff_t gfs2_seek_hole(struct file *file, loff_t offset)
2111 struct inode *inode = file->f_mapping->host;
2125 return vfs_setpos(file, ret, inode->i_sb->s_maxbytes);