Home
last modified time | relevance | path

Searched refs:HFS_I (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/fs/hfs/
Dextent.c114 hfs_ext_build_key(fd->search_key, inode->i_ino, HFS_I(inode)->cached_start, in __hfs_ext_write_extent()
117 if (HFS_I(inode)->flags & HFS_FLG_EXT_NEW) { in __hfs_ext_write_extent()
124 hfs_brec_insert(fd, HFS_I(inode)->cached_extents, sizeof(hfs_extent_rec)); in __hfs_ext_write_extent()
125 HFS_I(inode)->flags &= ~(HFS_FLG_EXT_DIRTY|HFS_FLG_EXT_NEW); in __hfs_ext_write_extent()
129 hfs_bnode_write(fd->bnode, HFS_I(inode)->cached_extents, fd->entryoffset, fd->entrylength); in __hfs_ext_write_extent()
130 HFS_I(inode)->flags &= ~HFS_FLG_EXT_DIRTY; in __hfs_ext_write_extent()
140 if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) { in hfs_ext_write_extent()
173 if (HFS_I(inode)->flags & HFS_FLG_EXT_DIRTY) { in __hfs_ext_cache_extent()
179 res = __hfs_ext_read_extent(fd, HFS_I(inode)->cached_extents, inode->i_ino, in __hfs_ext_cache_extent()
182 HFS_I(inode)->cached_start = be16_to_cpu(fd->key->ext.FABN); in __hfs_ext_cache_extent()
[all …]
Dinode.c61 &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()
[all …]
Dbtree.c44 HFS_I(tree->inode)->flags = 0; in hfs_btree_open()
45 mutex_init(&HFS_I(tree->inode)->extents_lock); in hfs_btree_open()
50 if (HFS_I(tree->inode)->alloc_blocks > in hfs_btree_open()
51 HFS_I(tree->inode)->first_blocks) { in hfs_btree_open()
63 if (!HFS_I(tree->inode)->first_blocks) { in hfs_btree_open()
234 HFS_I(inode)->phys_size = inode->i_size = in hfs_bmap_reserve()
235 (loff_t)HFS_I(inode)->alloc_blocks * in hfs_bmap_reserve()
237 HFS_I(inode)->fs_blocks = inode->i_size >> in hfs_bmap_reserve()
Ddir.c158 spin_lock(&HFS_I(inode)->open_dir_lock); in hfs_readdir()
159 list_add(&rd->list, &HFS_I(inode)->open_dir_list); in hfs_readdir()
160 spin_unlock(&HFS_I(inode)->open_dir_lock); in hfs_readdir()
176 spin_lock(&HFS_I(inode)->open_dir_lock); in hfs_dir_release()
178 spin_unlock(&HFS_I(inode)->open_dir_lock); in hfs_dir_release()
303 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
Dsysdep.c29 diff = sys_tz.tz_minuteswest * 60 - HFS_I(inode)->tz_secondswest; in hfs_revalidate_dentry()
34 HFS_I(inode)->tz_secondswest += diff; in hfs_revalidate_dentry()
Dattr.c36 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_setxattr()
83 fd.search_key->cat = HFS_I(inode)->cat_key; in __hfs_getxattr()
Dhfs_fs.h93 #define HFS_IS_RSRC(inode) (HFS_I(inode)->flags & HFS_FLG_RSRC)
268 #define HFS_I(inode) (container_of(inode, struct hfs_inode_info, vfs_inode)) macro
Dcatalog.c252 spin_lock(&HFS_I(dir)->open_dir_lock); in hfs_cat_delete()
253 list_for_each_entry(rd, &HFS_I(dir)->open_dir_list, list) { in hfs_cat_delete()
257 spin_unlock(&HFS_I(dir)->open_dir_lock); in hfs_cat_delete()
Dsuper.c171 kmem_cache_free(hfs_inode_cachep, HFS_I(inode)); in hfs_free_inode()