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()
217 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode()
228 HFS_I(inode)->phys_size = 0; in hfs_new_inode()
229 HFS_I(inode)->alloc_blocks = 0; in hfs_new_inode()
230 HFS_I(inode)->first_blocks = 0; in hfs_new_inode()
231 HFS_I(inode)->cached_start = 0; in hfs_new_inode()
232 HFS_I(inode)->cached_blocks = 0; in hfs_new_inode()
233 memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
234 memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
251 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
258 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
278 memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); in hfs_inode_read_fork()
281 HFS_I(inode)->first_blocks = count; in hfs_inode_read_fork()
283 inode->i_size = HFS_I(inode)->phys_size = log_size; in hfs_inode_read_fork()
284 HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfs_inode_read_fork()
285 inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits); in hfs_inode_read_fork()
286 HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / in hfs_inode_read_fork()
288 HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz; in hfs_inode_read_fork()
289 if (!HFS_I(inode)->clump_blocks) in hfs_inode_read_fork()
290 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_inode_read_fork()
324 HFS_I(inode)->flags = 0; in hfs_read_inode()
325 HFS_I(inode)->rsrc_inode = NULL; in hfs_read_inode()
326 mutex_init(&HFS_I(inode)->extents_lock); in hfs_read_inode()
327 INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); in hfs_read_inode()
328 spin_lock_init(&HFS_I(inode)->open_dir_lock); in hfs_read_inode()
336 HFS_I(inode)->cat_key = *idata->key; in hfs_read_inode()
338 HFS_I(inode)->flags |= HFS_FLG_RSRC; in hfs_read_inode()
339 HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; in hfs_read_inode()
367 HFS_I(inode)->fs_blocks = 0; in hfs_read_inode()
414 memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); in hfs_inode_write_fork()
419 *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * in hfs_inode_write_fork()
452 main_inode = HFS_I(inode)->rsrc_inode; in hfs_write_inode()
462 if (HFS_I(main_inode)->cat_key.CName.len > HFS_NAMELEN) in hfs_write_inode()
464 fd.search_key->cat = HFS_I(main_inode)->cat_key; in hfs_write_inode()
527 inode = HFS_I(dir)->rsrc_inode; in hfs_file_lookup()
540 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
551 HFS_I(inode)->rsrc_inode = dir; in hfs_file_lookup()
552 HFS_I(dir)->rsrc_inode = inode; in hfs_file_lookup()
565 if (HFS_IS_RSRC(inode) && HFS_I(inode)->rsrc_inode) { in hfs_evict_inode()
566 HFS_I(HFS_I(inode)->rsrc_inode)->rsrc_inode = NULL; in hfs_evict_inode()
567 iput(HFS_I(inode)->rsrc_inode); in hfs_evict_inode()
574 inode = HFS_I(inode)->rsrc_inode; in hfs_file_open()
575 atomic_inc(&HFS_I(inode)->opencnt); in hfs_file_open()
584 inode = HFS_I(inode)->rsrc_inode; in hfs_file_release()
585 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { in hfs_file_release()