Lines Matching defs:file
6 * This file may be distributed under the terms of the GNU General Public License.
8 * This file contains inode-related functions which do not depend on
11 * Based on the minix file system code, (C) 1991, 1992 by Linus Torvalds
37 static int hfs_read_folio(struct file *file, struct folio *folio)
52 int hfs_write_begin(struct file *file, struct address_space *mapping,
58 ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
132 struct file *file = iocb->ki_filp;
133 struct address_space *mapping = file->f_mapping;
308 return inode->i_ino == be32_to_cpu(rec->file.FlNum);
345 hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen,
346 rec->file.PyLen, be16_to_cpu(rec->file.ClpSize));
348 hfs_inode_read_fork(inode, rec->file.RExtRec, rec->file.RLgLen,
349 rec->file.RPyLen, be16_to_cpu(rec->file.ClpSize));
352 inode->i_ino = be32_to_cpu(rec->file.FlNum);
354 if (!(rec->file.Flags & HFS_FIL_LOCK))
359 hfs_m_to_utime(rec->file.MdDat));
384 * the catalog B-tree and the 'type' of the desired file return the
385 * inode for that file/directory or NULL. Note that 'type' indicates
386 * whether we want the actual file or directory, or the corresponding
387 * metadata (AppleDouble header file or CAP metadata file).
400 cnid = be32_to_cpu(rec->file.FlNum);
487 hfs_inode_write_fork(inode, rec.file.RExtRec,
488 &rec.file.RLgLen, &rec.file.RPyLen);
497 be32_to_cpu(rec.file.FlNum) != inode->i_ino) {
501 rec.file.Flags &= ~HFS_FIL_LOCK;
503 rec.file.Flags |= HFS_FIL_LOCK;
504 hfs_inode_write_fork(inode, rec.file.ExtRec, &rec.file.LgLen, &rec.file.PyLen);
505 rec.file.MdDat = hfs_u_to_mtime(inode->i_mtime);
571 static int hfs_file_open(struct inode *inode, struct file *file)
579 static int hfs_file_release(struct inode *inode, struct file *file)
603 * for HFS file systems. The purpose is to take that changes made to
607 * 2) map file permissions to the closest allowable permissions
609 * HFS (for instance the data and resource forks of a file) a change
611 * correspond to the same HFS file.
665 static int hfs_file_fsync(struct file *filp, loff_t start, loff_t end,