Searched refs:HFS_SB (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/fs/hfs/ |
H A D | mdb.c | 137 HFS_SB(sb)->mdb_bh = bh; in hfs_mdb_get() 138 HFS_SB(sb)->mdb = mdb; in hfs_mdb_get() 143 HFS_SB(sb)->fs_div = HFS_SB(sb)->alloc_blksz >> sb->s_blocksize_bits; in hfs_mdb_get() 170 if (!HFS_SB(sb)->alt_mdb) { in hfs_mdb_get() 176 if (!HFS_SB(sb)->bitmap) in hfs_mdb_get() 290 HFS_SB(sb)->alt_mdb) { in hfs_mdb_commit() 297 memcpy(HFS_SB(sb)->alt_mdb, HFS_SB(sb)->mdb, HFS_SECTOR_SIZE); in hfs_mdb_commit() 312 block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start; in hfs_mdb_commit() 356 if (!HFS_SB(sb)) in hfs_mdb_put() 369 kfree(HFS_SB(sb)->bitmap); in hfs_mdb_put() [all …]
|
H A D | bitmap.c | 148 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free() 149 bitmap = HFS_SB(sb)->bitmap; 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() 238 HFS_SB(sb)->free_ablocks += len; in hfs_clear_vbm_bits() [all …]
|
H A D | inode.c | 84 tree = HFS_SB(sb)->ext_tree; in hfs_release_folio() 87 tree = HFS_SB(sb)->cat_tree; in hfs_release_folio() 210 HFS_SB(sb)->folder_count++; in hfs_new_inode() 212 HFS_SB(sb)->root_dirs++; in hfs_new_inode() 219 HFS_SB(sb)->file_count++; in hfs_new_inode() 221 HFS_SB(sb)->root_files++; in hfs_new_inode() 251 HFS_SB(sb)->folder_count--; in hfs_delete_inode() 253 HFS_SB(sb)->root_dirs--; in hfs_delete_inode() 258 HFS_SB(sb)->file_count--; in hfs_delete_inode() 260 HFS_SB(sb)->root_files--; in hfs_delete_inode() [all …]
|
H A D | super.c | 48 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()
|
H A D | part_tbl.c | 82 (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()
|
H A D | trans.c | 35 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()
|
H A D | extent.c | 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() 505 size = inode->i_size + HFS_SB(sb)->alloc_blksz - 1; in hfs_file_truncate() 506 blk_cnt = size / HFS_SB(sb)->alloc_blksz; in hfs_file_truncate() [all …]
|
H A D | catalog.c | 59 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()
|
H A D | attr.c | 33 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()
|
H A D | hfs_fs.h | 272 #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()
|
H A D | dir.c | 28 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()
|
H A D | btree.c | 43 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_btree_open() 239 HFS_SB(tree->sb)->alloc_blksz; in hfs_bmap_reserve()
|