Home
last modified time | relevance | path

Searched refs:HFS_SB (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/fs/hfs/
Dmdb.c41 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
47 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
108 HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz); in hfs_mdb_get()
114 size = min(HFS_SB(sb)->alloc_blksz, (u32)PAGE_SIZE); in hfs_mdb_get()
123 while (HFS_SB(sb)->alloc_blksz & (size - 1)) in hfs_mdb_get()
137 HFS_SB(sb)->mdb_bh = bh; in hfs_mdb_get()
138 HFS_SB(sb)->mdb = mdb; in hfs_mdb_get()
141 HFS_SB(sb)->part_start = part_start; in hfs_mdb_get()
142 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); in hfs_mdb_get()
143 HFS_SB(sb)->fs_div = HFS_SB(sb)->alloc_blksz >> sb->s_blocksize_bits; in hfs_mdb_get()
[all …]
Dbitmap.c148 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free()
149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free()
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
152 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
155 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free()
162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free()
165 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free()
205 if ((start + count) > HFS_SB(sb)->fs_ablocks) in hfs_clear_vbm_bits()
208 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_clear_vbm_bits()
210 curr = HFS_SB(sb)->bitmap + (start / 32); in hfs_clear_vbm_bits()
[all …]
Dinode.c84 tree = HFS_SB(sb)->ext_tree; in hfs_release_folio()
87 tree = HFS_SB(sb)->cat_tree; in hfs_release_folio()
198 inode->i_ino = HFS_SB(sb)->next_id++; in hfs_new_inode()
209 HFS_SB(sb)->folder_count++; in hfs_new_inode()
211 HFS_SB(sb)->root_dirs++; in hfs_new_inode()
215 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
217 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode()
218 HFS_SB(sb)->file_count++; in hfs_new_inode()
220 HFS_SB(sb)->root_files++; in hfs_new_inode()
227 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
[all …]
Dsuper.c48 cancel_delayed_work_sync(&HFS_SB(sb)->mdb_work); in hfs_put_super()
71 struct hfs_sb_info *sbi = HFS_SB(sb); in hfs_mark_mdb_dirty()
102 buf->f_blocks = (u32)HFS_SB(sb)->fs_ablocks * HFS_SB(sb)->fs_div; in hfs_statfs()
103 buf->f_bfree = (u32)HFS_SB(sb)->free_ablocks * HFS_SB(sb)->fs_div; in hfs_statfs()
105 buf->f_files = HFS_SB(sb)->fs_ablocks; in hfs_statfs()
106 buf->f_ffree = HFS_SB(sb)->free_ablocks; in hfs_statfs()
120 if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_remount()
124 } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { in hfs_remount()
135 struct hfs_sb_info *sbi = HFS_SB(root->d_sb); in hfs_show_options()
416 res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_fill_super()
Dpart_tbl.c82 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find()
98 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find()
Dtrans.c35 struct nls_table *nls_disk = HFS_SB(sb)->nls_disk; in hfs_mac2asc()
36 struct nls_table *nls_io = HFS_SB(sb)->nls_io; in hfs_mac2asc()
99 struct nls_table *nls_disk = HFS_SB(sb)->nls_disk; in hfs_asc2mac()
100 struct nls_table *nls_io = HFS_SB(sb)->nls_io; in hfs_asc2mac()
Dextent.c141 res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_write_extent()
200 res = hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_read_extent()
302 total_blocks /= HFS_SB(sb)->alloc_blksz; in hfs_free_fork()
316 res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd); in hfs_free_fork()
345 ablock = (u32)block / HFS_SB(sb)->fs_div; in hfs_get_block()
377 map_bh(bh_result, sb, HFS_SB(sb)->fs_start + in hfs_get_block()
378 dblock * HFS_SB(sb)->fs_div + in hfs_get_block()
379 (u32)block % HFS_SB(sb)->fs_div); in hfs_get_block()
452 set_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags); in hfs_extend_file()
453 set_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags); in hfs_extend_file()
[all …]
Dcatalog.c59 rec->file.UsrWds.fdType = HFS_SB(inode->i_sb)->s_type; in hfs_cat_build_record()
60 rec->file.UsrWds.fdCreator = HFS_SB(inode->i_sb)->s_creator; in hfs_cat_build_record()
96 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_create()
230 res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_delete()
301 err = hfs_find_init(HFS_SB(sb)->cat_tree, &src_fd); in hfs_cat_move()
Dattr.c33 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in __hfs_setxattr()
80 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in __hfs_getxattr()
Dhfs_fs.h272 #define HFS_SB(sb) ((struct hfs_sb_info *)(sb)->s_fs_info) macro
285 set_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags); in hfs_bitmap_dirty()
Ddir.c28 res = hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup()
62 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_readdir()
Dbtree.c43 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_btree_open()
239 HFS_SB(tree->sb)->alloc_blksz; in hfs_bmap_reserve()