Lines Matching refs:HFS_I

60 				&HFS_I(mapping->host)->phys_size);  in hfs_write_begin()
194 mutex_init(&HFS_I(inode)->extents_lock); in hfs_new_inode()
195 INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); in hfs_new_inode()
196 spin_lock_init(&HFS_I(inode)->open_dir_lock); in hfs_new_inode()
197 hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); in hfs_new_inode()
204 HFS_I(inode)->flags = 0; in hfs_new_inode()
205 HFS_I(inode)->rsrc_inode = NULL; in hfs_new_inode()
206 HFS_I(inode)->fs_blocks = 0; in hfs_new_inode()
207 HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; in hfs_new_inode()
218 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode()
229 HFS_I(inode)->phys_size = 0; in hfs_new_inode()
230 HFS_I(inode)->alloc_blocks = 0; in hfs_new_inode()
231 HFS_I(inode)->first_blocks = 0; in hfs_new_inode()
232 HFS_I(inode)->cached_start = 0; in hfs_new_inode()
233 HFS_I(inode)->cached_blocks = 0; in hfs_new_inode()
234 memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
235 memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
252 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
259 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
279 memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); in hfs_inode_read_fork()
282 HFS_I(inode)->first_blocks = count; in hfs_inode_read_fork()
283 HFS_I(inode)->cached_start = 0; in hfs_inode_read_fork()
284 HFS_I(inode)->cached_blocks = 0; in hfs_inode_read_fork()
286 inode->i_size = HFS_I(inode)->phys_size = log_size; in hfs_inode_read_fork()
287 HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfs_inode_read_fork()
288 inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits); in hfs_inode_read_fork()
289 HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / in hfs_inode_read_fork()
291 HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz; in hfs_inode_read_fork()
292 if (!HFS_I(inode)->clump_blocks) in hfs_inode_read_fork()
293 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_inode_read_fork()
327 HFS_I(inode)->flags = 0; in hfs_read_inode()
328 HFS_I(inode)->rsrc_inode = NULL; in hfs_read_inode()
329 mutex_init(&HFS_I(inode)->extents_lock); in hfs_read_inode()
330 INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); in hfs_read_inode()
331 spin_lock_init(&HFS_I(inode)->open_dir_lock); in hfs_read_inode()
339 HFS_I(inode)->cat_key = *idata->key; in hfs_read_inode()
341 HFS_I(inode)->flags |= HFS_FLG_RSRC; in hfs_read_inode()
342 HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; in hfs_read_inode()
370 HFS_I(inode)->fs_blocks = 0; in hfs_read_inode()
417 memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); in hfs_inode_write_fork()
422 *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * in hfs_inode_write_fork()
455 main_inode = HFS_I(inode)->rsrc_inode; in hfs_write_inode()
465 if (HFS_I(main_inode)->cat_key.CName.len > HFS_NAMELEN) in hfs_write_inode()
467 fd.search_key->cat = HFS_I(main_inode)->cat_key; in hfs_write_inode()
530 inode = HFS_I(dir)->rsrc_inode; in hfs_file_lookup()
543 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
554 HFS_I(inode)->rsrc_inode = dir; in hfs_file_lookup()
555 HFS_I(dir)->rsrc_inode = inode; in hfs_file_lookup()
568 if (HFS_IS_RSRC(inode) && HFS_I(inode)->rsrc_inode) { in hfs_evict_inode()
569 HFS_I(HFS_I(inode)->rsrc_inode)->rsrc_inode = NULL; in hfs_evict_inode()
570 iput(HFS_I(inode)->rsrc_inode); in hfs_evict_inode()
577 inode = HFS_I(inode)->rsrc_inode; in hfs_file_open()
578 atomic_inc(&HFS_I(inode)->opencnt); in hfs_file_open()
587 inode = HFS_I(inode)->rsrc_inode; in hfs_file_release()
588 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { in hfs_file_release()