• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hfs/

Lines Matching refs:inode

14 static void hfs_file_truncate(struct inode *);
88 * "regular" (non-header) files. The purpose is to translate an inode
93 int hfs_get_block(struct inode *inode, long iblock, struct buffer_head *bh_result, int create)
97 phys = hfs_extent_map(HFS_I(inode)->fork, iblock, create);
99 bh_result->b_dev = inode->i_dev;
121 * 'count' bytes from the file corresponding to 'inode', beginning at
129 struct inode *inode = filp->f_dentry->d_inode;
132 if (!S_ISREG(inode->i_mode)) {
133 hfs_warn("hfs_file_read: mode = %07o\n",inode->i_mode);
140 size = inode->i_size;
152 if ((read = hfs_do_read(inode, HFS_I(inode)->fork, pos,
166 * to the file corresponding to 'inode' beginning at offset
173 struct inode *inode = filp->f_dentry->d_inode;
174 struct hfs_fork *fork = HFS_I(inode)->fork;
177 if (!S_ISREG(inode->i_mode)) {
178 hfs_warn("hfs_file_write: mode = %07o\n", inode->i_mode);
182 pos = (filp->f_flags & O_APPEND) ? inode->i_size : *ppos;
190 if ((written = hfs_do_write(inode, fork, pos, buf, count)) > 0)
194 if (*ppos > inode->i_size) {
195 inode->i_size = *ppos;
196 mark_inode_dirty(inode);
207 * corresponding to the given inode. Changes can either lengthen or
210 static void hfs_file_truncate(struct inode * inode)
212 struct hfs_fork *fork = HFS_I(inode)->fork;
214 fork->lsize = inode->i_size;
216 hfs_cat_mark_dirty(HFS_I(inode)->entry);
218 inode->i_size = fork->lsize;
219 inode->i_blocks = fork->psize;
220 mark_inode_dirty(inode);
276 hfs_s32 hfs_do_read(struct inode *inode, struct hfs_fork * fork, hfs_u32 pos,
279 kdev_t dev = inode->i_dev;
282 int convert = HFS_I(inode)->convert;
431 hfs_s32 hfs_do_write(struct inode *inode, struct hfs_fork * fork, hfs_u32 pos,
437 int convert = HFS_I(inode)->convert;
482 inode->i_mtime = inode->i_ctime = CURRENT_TIME;
511 struct inode *inode = de[i]->d_inode;
512 inode->i_mode |= S_IWUGO;
513 inode->i_mode &=
514 ~HFS_SB(inode->i_sb)->s_umask;