Lines Matching refs:hpfs_inode
16 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_init_inode() local
24 hpfs_inode->i_dno = 0; in hpfs_init_inode()
25 hpfs_inode->i_n_secs = 0; in hpfs_init_inode()
26 hpfs_inode->i_file_sec = 0; in hpfs_init_inode()
27 hpfs_inode->i_disk_sec = 0; in hpfs_init_inode()
28 hpfs_inode->i_dpos = 0; in hpfs_init_inode()
29 hpfs_inode->i_dsubdno = 0; in hpfs_init_inode()
30 hpfs_inode->i_ea_mode = 0; in hpfs_init_inode()
31 hpfs_inode->i_ea_uid = 0; in hpfs_init_inode()
32 hpfs_inode->i_ea_gid = 0; in hpfs_init_inode()
33 hpfs_inode->i_ea_size = 0; in hpfs_init_inode()
35 hpfs_inode->i_rddir_off = NULL; in hpfs_init_inode()
36 hpfs_inode->i_dirty = 0; in hpfs_init_inode()
48 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_read_inode() local
65 hpfs_inode->i_ea_uid = 1; in hpfs_read_inode()
72 hpfs_inode->i_ea_gid = 1; in hpfs_read_inode()
92 hpfs_inode->i_ea_mode = 1; in hpfs_read_inode()
119 hpfs_inode->i_parent_dir = le32_to_cpu(fnode->up); in hpfs_read_inode()
120 hpfs_inode->i_dno = le32_to_cpu(fnode->u.external[0].disk_secno); in hpfs_read_inode()
123 if (hpfs_map_fnode(sb, hpfs_inode->i_parent_dir, &bh0)) brelse(bh0); in hpfs_read_inode()
126 hpfs_count_dnodes(i->i_sb, hpfs_inode->i_dno, &n_dnodes, &n_subdirs, NULL); in hpfs_read_inode()
132 if (!hpfs_inode->i_ea_mode) i->i_mode &= ~0111; in hpfs_read_inode()
146 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_write_inode_ea() local
153 if (!uid_eq(i->i_uid, hpfs_sb(i->i_sb)->sb_uid) || hpfs_inode->i_ea_uid) { in hpfs_write_inode_ea()
156 hpfs_inode->i_ea_uid = 1; in hpfs_write_inode_ea()
158 if (!gid_eq(i->i_gid, hpfs_sb(i->i_sb)->sb_gid) || hpfs_inode->i_ea_gid) { in hpfs_write_inode_ea()
161 hpfs_inode->i_ea_gid = 1; in hpfs_write_inode_ea()
167 | (S_ISDIR(i->i_mode) ? S_IFDIR : S_IFREG))) || hpfs_inode->i_ea_mode) { in hpfs_write_inode_ea()
171 hpfs_inode->i_ea_mode = 1; in hpfs_write_inode_ea()
182 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_write_inode() local
185 if (hpfs_inode->i_rddir_off && !atomic_read(&i->i_count)) { in hpfs_write_inode()
186 if (*hpfs_inode->i_rddir_off) in hpfs_write_inode()
188 kfree(hpfs_inode->i_rddir_off); in hpfs_write_inode()
189 hpfs_inode->i_rddir_off = NULL; in hpfs_write_inode()
194 parent = iget_locked(i->i_sb, hpfs_inode->i_parent_dir); in hpfs_write_inode()
196 hpfs_inode->i_dirty = 0; in hpfs_write_inode()
209 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_write_inode_nolock() local
235 de->ea_size = cpu_to_le32(hpfs_inode->i_ea_size); in hpfs_write_inode_nolock()
240 if ((de = map_dirent(i, hpfs_inode->i_dno, "\001\001", 2, NULL, &qbh))) { in hpfs_write_inode_nolock()
300 struct hpfs_inode_info *hpfs_inode = hpfs_i(inode); in hpfs_write_if_changed() local
302 if (hpfs_inode->i_dirty) in hpfs_write_if_changed()