Lines Matching refs:file
602 * @file: If non-NULL, the file which is being opened
619 struct file *file,
665 if (file) {
667 error = finish_open(file, dentry, gfs2_open_common);
669 error = finish_no_open(file, NULL);
809 if (file) {
810 file->f_mode |= FMODE_CREATED;
811 error = finish_open(file, dentry, gfs2_open_common);
859 * gfs2_create - Create a file
861 * @dir: The directory in which to create the file
862 * @dentry: The dentry of the new file
863 * @mode: The mode of the new file
879 * @file: File to be opened
886 struct file *file)
914 if (file && S_ISREG(inode->i_mode))
915 error = finish_open(file, dentry, gfs2_open_common);
932 * gfs2_link - Link to a file
1068 * @name: the name of the file
1138 * @dentry: The file itself
1259 * gfs2_mknod - Make a special file
1261 * @dir: The directory in which the special file will reside
1262 * @dentry: The dentry of the special file
1263 * @mode: The mode of the special file
1264 * @dev: The device specification of the special file
1275 * gfs2_atomic_open - Atomically open a file
1278 * @file: The proposed new struct file
1286 struct file *file, unsigned flags,
1295 d = __gfs2_lookup(dir, dentry, file);
1301 if (!(file->f_mode & FMODE_OPENED))
1302 return finish_no_open(file, d);
1313 return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl);
1387 * gfs2_rename - Rename a file
1388 * @odir: Parent directory of old file name
1389 * @odentry: The old dentry of the file
1390 * @ndir: Parent directory of new file name
1391 * @ndentry: The new dentry of the file
1588 /* Remove the target file, if it exists */
1633 * @odir: Parent directory of old file name
1634 * @odentry: The old dentry of the file
1635 * @ndir: Parent directory of new file name
1636 * @ndentry: The new dentry of the file
2118 loff_t gfs2_seek_data(struct file *file, loff_t offset)
2120 struct inode *inode = file->f_mapping->host;
2134 return vfs_setpos(file, ret, inode->i_sb->s_maxbytes);
2137 loff_t gfs2_seek_hole(struct file *file, loff_t offset)
2139 struct inode *inode = file->f_mapping->host;
2153 return vfs_setpos(file, ret, inode->i_sb->s_maxbytes);