Lines Matching refs:hip

284 	struct hfsplus_inode_info *hip = HFSPLUS_I(inode);  in hfsplus_getattr()  local
288 stat->btime = hfsp_mt2ut(hip->create_date); in hfsplus_getattr()
295 if (hip->userflags & HFSPLUS_FLG_NODUMP) in hfsplus_getattr()
309 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_file_fsync() local
326 if (test_and_clear_bit(HFSPLUS_I_CAT_DIRTY, &hip->flags)) in hfsplus_file_fsync()
329 if (test_and_clear_bit(HFSPLUS_I_EXT_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
336 if (test_and_clear_bit(HFSPLUS_I_ATTR_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
348 if (test_and_clear_bit(HFSPLUS_I_ALLOC_DIRTY, &hip->flags)) { in hfsplus_file_fsync()
387 struct hfsplus_inode_info *hip; in hfsplus_new_inode() local
397 hip = HFSPLUS_I(inode); in hfsplus_new_inode()
398 INIT_LIST_HEAD(&hip->open_dir_list); in hfsplus_new_inode()
399 spin_lock_init(&hip->open_dir_lock); in hfsplus_new_inode()
400 mutex_init(&hip->extents_lock); in hfsplus_new_inode()
401 atomic_set(&hip->opencnt, 0); in hfsplus_new_inode()
402 hip->extent_state = 0; in hfsplus_new_inode()
403 hip->flags = 0; in hfsplus_new_inode()
404 hip->userflags = 0; in hfsplus_new_inode()
405 hip->subfolders = 0; in hfsplus_new_inode()
406 memset(hip->first_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_new_inode()
407 memset(hip->cached_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_new_inode()
408 hip->alloc_blocks = 0; in hfsplus_new_inode()
409 hip->first_blocks = 0; in hfsplus_new_inode()
410 hip->cached_start = 0; in hfsplus_new_inode()
411 hip->cached_blocks = 0; in hfsplus_new_inode()
412 hip->phys_size = 0; in hfsplus_new_inode()
413 hip->fs_blocks = 0; in hfsplus_new_inode()
414 hip->rsrc_inode = NULL; in hfsplus_new_inode()
425 hip->clump_blocks = sbi->data_clump_blocks; in hfsplus_new_inode()
431 hip->clump_blocks = 1; in hfsplus_new_inode()
467 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_inode_read_fork() local
471 memcpy(&hip->first_extents, &fork->extents, sizeof(hfsplus_extent_rec)); in hfsplus_inode_read_fork()
474 hip->first_blocks = count; in hfsplus_inode_read_fork()
475 memset(hip->cached_extents, 0, sizeof(hfsplus_extent_rec)); in hfsplus_inode_read_fork()
476 hip->cached_start = 0; in hfsplus_inode_read_fork()
477 hip->cached_blocks = 0; in hfsplus_inode_read_fork()
479 hip->alloc_blocks = be32_to_cpu(fork->total_blocks); in hfsplus_inode_read_fork()
480 hip->phys_size = inode->i_size = be64_to_cpu(fork->total_size); in hfsplus_inode_read_fork()
481 hip->fs_blocks = in hfsplus_inode_read_fork()
483 inode_set_bytes(inode, hip->fs_blocks << sb->s_blocksize_bits); in hfsplus_inode_read_fork()
484 hip->clump_blocks = in hfsplus_inode_read_fork()
486 if (!hip->clump_blocks) { in hfsplus_inode_read_fork()
487 hip->clump_blocks = HFSPLUS_IS_RSRC(inode) ? in hfsplus_inode_read_fork()
643 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_fileattr_get() local
650 if (hip->userflags & HFSPLUS_FLG_NODUMP) in hfsplus_fileattr_get()
662 struct hfsplus_inode_info *hip = HFSPLUS_I(inode); in hfsplus_fileattr_set() local
681 hip->userflags |= HFSPLUS_FLG_NODUMP; in hfsplus_fileattr_set()
683 hip->userflags &= ~HFSPLUS_FLG_NODUMP; in hfsplus_fileattr_set()