Lines Matching refs:hip
176 struct hfsplus_inode_info *hip; in hfsplus_file_lookup() local
190 hip = HFSPLUS_I(inode); in hfsplus_file_lookup()
192 INIT_LIST_HEAD(&hip->open_dir_list); in hfsplus_file_lookup()
193 mutex_init(&hip->extents_lock); in hfsplus_file_lookup()
194 hip->extent_state = 0; in hfsplus_file_lookup()
195 hip->flags = 0; in hfsplus_file_lookup()
196 set_bit(HFSPLUS_I_RSRC, &hip->flags); in hfsplus_file_lookup()
207 hip->rsrc_inode = dir; in hfsplus_file_lookup()
312 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_file_fsync() local
324 if (test_and_clear_bit(HFSPLUS_I_CAT_DIRTY, &hip->flags)) in hfsplus_file_fsync()
327 if (test_and_clear_bit(HFSPLUS_I_EXT_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
334 if (test_and_clear_bit(HFSPLUS_I_ALLOC_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
373 struct hfsplus_inode_info *hip; in hfsplus_new_inode() local
385 hip = HFSPLUS_I(inode); in hfsplus_new_inode()
386 INIT_LIST_HEAD(&hip->open_dir_list); in hfsplus_new_inode()
387 mutex_init(&hip->extents_lock); in hfsplus_new_inode()
388 atomic_set(&hip->opencnt, 0); in hfsplus_new_inode()
389 hip->extent_state = 0; in hfsplus_new_inode()
390 hip->flags = 0; in hfsplus_new_inode()
391 memset(hip->first_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_new_inode()
392 memset(hip->cached_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_new_inode()
393 hip->alloc_blocks = 0; in hfsplus_new_inode()
394 hip->first_blocks = 0; in hfsplus_new_inode()
395 hip->cached_start = 0; in hfsplus_new_inode()
396 hip->cached_blocks = 0; in hfsplus_new_inode()
397 hip->phys_size = 0; in hfsplus_new_inode()
398 hip->fs_blocks = 0; in hfsplus_new_inode()
399 hip->rsrc_inode = NULL; in hfsplus_new_inode()
410 hip->clump_blocks = sbi->data_clump_blocks; in hfsplus_new_inode()
415 hip->clump_blocks = 1; in hfsplus_new_inode()
451 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_inode_read_fork() local
455 memcpy(&hip->first_extents, &fork->extents, sizeof(hfsplus_extent_rec)); in hfsplus_inode_read_fork()
458 hip->first_blocks = count; in hfsplus_inode_read_fork()
459 memset(hip->cached_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_inode_read_fork()
460 hip->cached_start = 0; in hfsplus_inode_read_fork()
461 hip->cached_blocks = 0; in hfsplus_inode_read_fork()
463 hip->alloc_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_inode_read_fork()
464 hip->phys_size = inode->i_size = be64_to_cpu(fork->total_size); in hfsplus_inode_read_fork()
465 hip->fs_blocks = in hfsplus_inode_read_fork()
467 inode_set_bytes(inode, hip->fs_blocks << sb->s_blocksize_bits); in hfsplus_inode_read_fork()
468 hip->clump_blocks = in hfsplus_inode_read_fork()
470 if (!hip->clump_blocks) { in hfsplus_inode_read_fork()
471 hip->clump_blocks = HFSPLUS_IS_RSRC(inode) ? in hfsplus_inode_read_fork()