Home
last modified time | relevance | path

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

/linux-3.4.99/fs/hfs/
Dmdb.c43 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
44 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
102 HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz); in hfs_mdb_get()
108 size = min(HFS_SB(sb)->alloc_blksz, (u32)PAGE_SIZE); in hfs_mdb_get()
117 while (HFS_SB(sb)->alloc_blksz & (size - 1)) in hfs_mdb_get()
131 HFS_SB(sb)->mdb_bh = bh; in hfs_mdb_get()
132 HFS_SB(sb)->mdb = mdb; in hfs_mdb_get()
135 HFS_SB(sb)->part_start = part_start; in hfs_mdb_get()
136 HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks); in hfs_mdb_get()
137 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.c73 tree = HFS_SB(sb)->ext_tree; in hfs_releasepage()
76 tree = HFS_SB(sb)->cat_tree; in hfs_releasepage()
182 inode->i_ino = HFS_SB(sb)->next_id++; in hfs_new_inode()
193 HFS_SB(sb)->folder_count++; in hfs_new_inode()
195 HFS_SB(sb)->root_dirs++; in hfs_new_inode()
199 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_dir_umask; in hfs_new_inode()
201 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode()
202 HFS_SB(sb)->file_count++; in hfs_new_inode()
204 HFS_SB(sb)->root_files++; in hfs_new_inode()
211 inode->i_mode &= ~HFS_SB(inode->i_sb)->s_file_umask; in hfs_new_inode()
[all …]
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()
Dsuper.c104 buf->f_blocks = (u32)HFS_SB(sb)->fs_ablocks * HFS_SB(sb)->fs_div; in hfs_statfs()
105 buf->f_bfree = (u32)HFS_SB(sb)->free_ablocks * HFS_SB(sb)->fs_div; in hfs_statfs()
107 buf->f_files = HFS_SB(sb)->fs_ablocks; in hfs_statfs()
108 buf->f_ffree = HFS_SB(sb)->free_ablocks; in hfs_statfs()
122 if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) { in hfs_remount()
127 } else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) { in hfs_remount()
138 struct hfs_sb_info *sbi = HFS_SB(root->d_sb); in hfs_show_options()
412 hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_fill_super()
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.c135 hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_write_extent()
188 hfs_find_init(HFS_SB(inode->i_sb)->ext_tree, &fd); in hfs_ext_read_extent()
287 total_blocks /= HFS_SB(sb)->alloc_blksz; in hfs_free_fork()
301 hfs_find_init(HFS_SB(sb)->ext_tree, &fd); in hfs_free_fork()
328 ablock = (u32)block / HFS_SB(sb)->fs_div; in hfs_get_block()
358 map_bh(bh_result, sb, HFS_SB(sb)->fs_start + in hfs_get_block()
359 dblock * HFS_SB(sb)->fs_div + in hfs_get_block()
360 (u32)block % HFS_SB(sb)->fs_div); in hfs_get_block()
433 set_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags); in hfs_extend_file()
434 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()
95 hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_create()
217 hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_delete()
284 hfs_find_init(HFS_SB(sb)->cat_tree, &src_fd); in hfs_cat_move()
Dattr.c28 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in hfs_setxattr()
72 res = hfs_find_init(HFS_SB(inode->i_sb)->cat_tree, &fd); in hfs_getxattr()
Dhfs_fs.h242 #define HFS_SB(sb) ((struct hfs_sb_info *)(sb)->s_fs_info) macro
255 set_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags); in hfs_bitmap_dirty()
Ddir.c28 hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd); in hfs_lookup()
66 hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_readdir()
Dbtree.c42 struct hfs_mdb *mdb = HFS_SB(sb)->mdb; in hfs_btree_open()
243 HFS_SB(tree->sb)->alloc_blksz; in hfs_bmap_alloc()