Lines Matching refs:HFS_I
61 &HFS_I(mapping->host)->phys_size); in hfs_write_begin()
190 mutex_init(&HFS_I(inode)->extents_lock); in hfs_new_inode()
191 INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); in hfs_new_inode()
192 spin_lock_init(&HFS_I(inode)->open_dir_lock); in hfs_new_inode()
193 hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); in hfs_new_inode()
200 HFS_I(inode)->flags = 0; in hfs_new_inode()
201 HFS_I(inode)->rsrc_inode = NULL; in hfs_new_inode()
202 HFS_I(inode)->fs_blocks = 0; in hfs_new_inode()
213 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode()
224 HFS_I(inode)->phys_size = 0; in hfs_new_inode()
225 HFS_I(inode)->alloc_blocks = 0; in hfs_new_inode()
226 HFS_I(inode)->first_blocks = 0; in hfs_new_inode()
227 HFS_I(inode)->cached_start = 0; in hfs_new_inode()
228 HFS_I(inode)->cached_blocks = 0; in hfs_new_inode()
229 memset(HFS_I(inode)->first_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
230 memset(HFS_I(inode)->cached_extents, 0, sizeof(hfs_extent_rec)); in hfs_new_inode()
247 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
254 if (HFS_I(inode)->cat_key.ParID == cpu_to_be32(HFS_ROOT_CNID)) in hfs_delete_inode()
274 memcpy(HFS_I(inode)->first_extents, ext, sizeof(hfs_extent_rec)); in hfs_inode_read_fork()
277 HFS_I(inode)->first_blocks = count; in hfs_inode_read_fork()
279 inode->i_size = HFS_I(inode)->phys_size = log_size; in hfs_inode_read_fork()
280 HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in hfs_inode_read_fork()
281 inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits); in hfs_inode_read_fork()
282 HFS_I(inode)->alloc_blocks = be32_to_cpu(phys_size) / in hfs_inode_read_fork()
284 HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz; in hfs_inode_read_fork()
285 if (!HFS_I(inode)->clump_blocks) in hfs_inode_read_fork()
286 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_inode_read_fork()
320 HFS_I(inode)->flags = 0; in hfs_read_inode()
321 HFS_I(inode)->rsrc_inode = NULL; in hfs_read_inode()
322 mutex_init(&HFS_I(inode)->extents_lock); in hfs_read_inode()
323 INIT_LIST_HEAD(&HFS_I(inode)->open_dir_list); in hfs_read_inode()
324 spin_lock_init(&HFS_I(inode)->open_dir_lock); in hfs_read_inode()
332 HFS_I(inode)->cat_key = *idata->key; in hfs_read_inode()
334 HFS_I(inode)->flags |= HFS_FLG_RSRC; in hfs_read_inode()
335 HFS_I(inode)->tz_secondswest = sys_tz.tz_minuteswest * 60; in hfs_read_inode()
363 HFS_I(inode)->fs_blocks = 0; in hfs_read_inode()
410 memcpy(ext, HFS_I(inode)->first_extents, sizeof(hfs_extent_rec)); in hfs_inode_write_fork()
415 *phys_size = cpu_to_be32(HFS_I(inode)->alloc_blocks * in hfs_inode_write_fork()
448 main_inode = HFS_I(inode)->rsrc_inode; in hfs_write_inode()
458 if (HFS_I(main_inode)->cat_key.CName.len > HFS_NAMELEN) in hfs_write_inode()
460 fd.search_key->cat = HFS_I(main_inode)->cat_key; in hfs_write_inode()
523 inode = HFS_I(dir)->rsrc_inode; in hfs_file_lookup()
536 fd.search_key->cat = HFS_I(dir)->cat_key; in hfs_file_lookup()
547 HFS_I(inode)->rsrc_inode = dir; in hfs_file_lookup()
548 HFS_I(dir)->rsrc_inode = inode; in hfs_file_lookup()
561 if (HFS_IS_RSRC(inode) && HFS_I(inode)->rsrc_inode) { in hfs_evict_inode()
562 HFS_I(HFS_I(inode)->rsrc_inode)->rsrc_inode = NULL; in hfs_evict_inode()
563 iput(HFS_I(inode)->rsrc_inode); in hfs_evict_inode()
570 inode = HFS_I(inode)->rsrc_inode; in hfs_file_open()
571 atomic_inc(&HFS_I(inode)->opencnt); in hfs_file_open()
580 inode = HFS_I(inode)->rsrc_inode; in hfs_file_release()
581 if (atomic_dec_and_test(&HFS_I(inode)->opencnt)) { in hfs_file_release()