HFSPLUS_SB 32 fs/hfsplus/bitmap.c mutex_lock(&HFSPLUS_SB(sb).alloc_file->i_mutex); HFSPLUS_SB 33 fs/hfsplus/bitmap.c mapping = HFSPLUS_SB(sb).alloc_file->i_mapping; HFSPLUS_SB 141 fs/hfsplus/bitmap.c HFSPLUS_SB(sb).free_blocks -= *max; HFSPLUS_SB 145 fs/hfsplus/bitmap.c mutex_unlock(&HFSPLUS_SB(sb).alloc_file->i_mutex); HFSPLUS_SB 163 fs/hfsplus/bitmap.c if ((offset + count) > HFSPLUS_SB(sb).total_blocks) HFSPLUS_SB 166 fs/hfsplus/bitmap.c mutex_lock(&HFSPLUS_SB(sb).alloc_file->i_mutex); HFSPLUS_SB 167 fs/hfsplus/bitmap.c mapping = HFSPLUS_SB(sb).alloc_file->i_mapping; HFSPLUS_SB 215 fs/hfsplus/bitmap.c HFSPLUS_SB(sb).free_blocks += len; HFSPLUS_SB 217 fs/hfsplus/bitmap.c mutex_unlock(&HFSPLUS_SB(sb).alloc_file->i_mutex); HFSPLUS_SB 64 fs/hfsplus/btree.c if ((HFSPLUS_SB(sb).flags & HFSPLUS_SB_HFSX) && HFSPLUS_SB 69 fs/hfsplus/btree.c HFSPLUS_SB(sb).flags |= HFSPLUS_SB_CASEFOLD; HFSPLUS_SB 203 fs/hfsplus/btree.c HFSPLUS_SB(tree->sb).alloc_blksz_shift; HFSPLUS_SB 205 fs/hfsplus/btree.c HFSPLUS_SB(tree->sb).fs_shift; HFSPLUS_SB 102 fs/hfsplus/catalog.c if (inode == HFSPLUS_SB(inode->i_sb).hidden_dir) HFSPLUS_SB 125 fs/hfsplus/catalog.c file->user_info.fdType = cpu_to_be32(HFSPLUS_SB(inode->i_sb).type); HFSPLUS_SB 126 fs/hfsplus/catalog.c file->user_info.fdCreator = cpu_to_be32(HFSPLUS_SB(inode->i_sb).creator); HFSPLUS_SB 134 fs/hfsplus/catalog.c file->create_date = HFSPLUS_I(HFSPLUS_SB(inode->i_sb).hidden_dir).create_date; HFSPLUS_SB 186 fs/hfsplus/catalog.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 241 fs/hfsplus/catalog.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 319 fs/hfsplus/catalog.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &src_fd); HFSPLUS_SB 42 fs/hfsplus/dir.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 71 fs/hfsplus/dir.c (entry.file.create_date == HFSPLUS_I(HFSPLUS_SB(sb).hidden_dir).create_date || HFSPLUS_SB 73 fs/hfsplus/dir.c HFSPLUS_SB(sb).hidden_dir) { HFSPLUS_SB 89 fs/hfsplus/dir.c hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_SB(sb).hidden_dir->i_ino, &str); HFSPLUS_SB 127 fs/hfsplus/dir.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 183 fs/hfsplus/dir.c if (HFSPLUS_SB(sb).hidden_dir && HFSPLUS_SB 184 fs/hfsplus/dir.c HFSPLUS_SB(sb).hidden_dir->i_ino == be32_to_cpu(entry.folder.id)) HFSPLUS_SB 282 fs/hfsplus/dir.c HFSPLUS_SB(sb).hidden_dir, &str); HFSPLUS_SB 289 fs/hfsplus/dir.c cnid = HFSPLUS_SB(sb).next_cnid++; HFSPLUS_SB 295 fs/hfsplus/dir.c HFSPLUS_SB(sb).file_count++; HFSPLUS_SB 297 fs/hfsplus/dir.c cnid = HFSPLUS_SB(sb).next_cnid++; HFSPLUS_SB 307 fs/hfsplus/dir.c HFSPLUS_SB(sb).file_count++; HFSPLUS_SB 332 fs/hfsplus/dir.c HFSPLUS_SB(sb).hidden_dir, &str); HFSPLUS_SB 347 fs/hfsplus/dir.c HFSPLUS_SB(sb).file_count--; HFSPLUS_SB 350 fs/hfsplus/dir.c HFSPLUS_SB(sb).hidden_dir, HFSPLUS_SB 359 fs/hfsplus/dir.c HFSPLUS_SB(sb).file_count--; HFSPLUS_SB 111 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(inode->i_sb).ext_tree, &fd); HFSPLUS_SB 165 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(inode->i_sb).ext_tree, &fd); HFSPLUS_SB 183 fs/hfsplus/extents.c shift = HFSPLUS_SB(sb).alloc_blksz_shift - sb->s_blocksize_bits; HFSPLUS_SB 184 fs/hfsplus/extents.c ablock = iblock >> HFSPLUS_SB(sb).fs_shift; HFSPLUS_SB 215 fs/hfsplus/extents.c mask = (1 << HFSPLUS_SB(sb).fs_shift) - 1; HFSPLUS_SB 216 fs/hfsplus/extents.c map_bh(bh_result, sb, (dblock << HFSPLUS_SB(sb).fs_shift) + HFSPLUS_SB(sb).blockoffset + (iblock & mask)); HFSPLUS_SB 327 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(sb).ext_tree, &fd); HFSPLUS_SB 351 fs/hfsplus/extents.c if (HFSPLUS_SB(sb).alloc_file->i_size * 8 < HFSPLUS_SB(sb).total_blocks - HFSPLUS_SB(sb).free_blocks + 8) { HFSPLUS_SB 353 fs/hfsplus/extents.c printk(KERN_ERR "hfs: extend alloc file! (%Lu,%u,%u)\n", HFSPLUS_SB(sb).alloc_file->i_size * 8, HFSPLUS_SB 354 fs/hfsplus/extents.c HFSPLUS_SB(sb).total_blocks, HFSPLUS_SB(sb).free_blocks); HFSPLUS_SB 369 fs/hfsplus/extents.c start = hfsplus_block_allocate(sb, HFSPLUS_SB(sb).total_blocks, goal, &len); HFSPLUS_SB 370 fs/hfsplus/extents.c if (start >= HFSPLUS_SB(sb).total_blocks) { HFSPLUS_SB 463 fs/hfsplus/extents.c blk_cnt = (inode->i_size + HFSPLUS_SB(sb).alloc_blksz - 1) >> HFSPLUS_SB(sb).alloc_blksz_shift; HFSPLUS_SB 469 fs/hfsplus/extents.c hfs_find_init(HFSPLUS_SB(sb).ext_tree, &fd); HFSPLUS_SB 56 fs/hfsplus/inode.c tree = HFSPLUS_SB(sb).ext_tree; HFSPLUS_SB 59 fs/hfsplus/inode.c tree = HFSPLUS_SB(sb).cat_tree; HFSPLUS_SB 62 fs/hfsplus/inode.c tree = HFSPLUS_SB(sb).attr_tree; HFSPLUS_SB 169 fs/hfsplus/inode.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 181 fs/hfsplus/inode.c hlist_add_head(&inode->i_hash, &HFSPLUS_SB(sb).rsrc_inodes); HFSPLUS_SB 197 fs/hfsplus/inode.c inode->i_uid = HFSPLUS_SB(sb).uid; HFSPLUS_SB 201 fs/hfsplus/inode.c inode->i_gid = HFSPLUS_SB(sb).gid; HFSPLUS_SB 205 fs/hfsplus/inode.c (S_IRWXUGO & ~(HFSPLUS_SB(sb).umask)); HFSPLUS_SB 209 fs/hfsplus/inode.c ~(HFSPLUS_SB(sb).umask)); HFSPLUS_SB 271 fs/hfsplus/inode.c hfsplus_delete_cat(inode->i_ino, HFSPLUS_SB(sb).hidden_dir, NULL); HFSPLUS_SB 308 fs/hfsplus/inode.c inode->i_ino = HFSPLUS_SB(sb).next_cnid++; HFSPLUS_SB 329 fs/hfsplus/inode.c HFSPLUS_SB(sb).folder_count++; HFSPLUS_SB 333 fs/hfsplus/inode.c HFSPLUS_SB(sb).file_count++; HFSPLUS_SB 337 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_SB(sb).data_clump_blocks; HFSPLUS_SB 339 fs/hfsplus/inode.c HFSPLUS_SB(sb).file_count++; HFSPLUS_SB 344 fs/hfsplus/inode.c HFSPLUS_SB(sb).file_count++; HFSPLUS_SB 357 fs/hfsplus/inode.c HFSPLUS_SB(sb).folder_count--; HFSPLUS_SB 361 fs/hfsplus/inode.c HFSPLUS_SB(sb).file_count--; HFSPLUS_SB 393 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = be32_to_cpu(fork->clump_size) >> HFSPLUS_SB(sb).alloc_blksz_shift; HFSPLUS_SB 395 fs/hfsplus/inode.c HFSPLUS_I(inode).clump_blocks = HFSPLUS_IS_RSRC(inode) ? HFSPLUS_SB(sb).rsrc_clump_blocks : HFSPLUS_SB 396 fs/hfsplus/inode.c HFSPLUS_SB(sb).data_clump_blocks; HFSPLUS_SB 481 fs/hfsplus/inode.c if (hfs_find_init(HFSPLUS_SB(main_inode->i_sb).cat_tree, &fd)) HFSPLUS_SB 107 fs/hfsplus/ioctl.c res = hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); HFSPLUS_SB 150 fs/hfsplus/ioctl.c res = hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); HFSPLUS_SB 173 fs/hfsplus/options.c struct hfsplus_sb_info *sbi = &HFSPLUS_SB(mnt->mnt_sb); HFSPLUS_SB 98 fs/hfsplus/part_tbl.c (HFSPLUS_SB(sb).part < 0 || HFSPLUS_SB(sb).part == i)) { HFSPLUS_SB 114 fs/hfsplus/part_tbl.c (HFSPLUS_SB(sb).part < 0 || HFSPLUS_SB(sb).part == i)) { HFSPLUS_SB 44 fs/hfsplus/super.c hfs_find_init(HFSPLUS_SB(inode->i_sb).cat_tree, &fd); HFSPLUS_SB 53 fs/hfsplus/super.c vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; HFSPLUS_SB 99 fs/hfsplus/super.c vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr; HFSPLUS_SB 106 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 110 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).ext_tree); HFSPLUS_SB 114 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 118 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).cat_tree); HFSPLUS_SB 122 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 129 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 136 fs/hfsplus/super.c HFSPLUS_SB(inode->i_sb).flags |= HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 140 fs/hfsplus/super.c hfs_btree_write(HFSPLUS_SB(inode->i_sb).attr_tree); HFSPLUS_SB 157 fs/hfsplus/super.c struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; HFSPLUS_SB 165 fs/hfsplus/super.c vhdr->free_blocks = cpu_to_be32(HFSPLUS_SB(sb).free_blocks); HFSPLUS_SB 166 fs/hfsplus/super.c vhdr->next_alloc = cpu_to_be32(HFSPLUS_SB(sb).next_alloc); HFSPLUS_SB 167 fs/hfsplus/super.c vhdr->next_cnid = cpu_to_be32(HFSPLUS_SB(sb).next_cnid); HFSPLUS_SB 168 fs/hfsplus/super.c vhdr->folder_count = cpu_to_be32(HFSPLUS_SB(sb).folder_count); HFSPLUS_SB 169 fs/hfsplus/super.c vhdr->file_count = cpu_to_be32(HFSPLUS_SB(sb).file_count); HFSPLUS_SB 171 fs/hfsplus/super.c mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 172 fs/hfsplus/super.c if (HFSPLUS_SB(sb).flags & HFSPLUS_SB_WRITEBACKUP) { HFSPLUS_SB 173 fs/hfsplus/super.c if (HFSPLUS_SB(sb).sect_count) { HFSPLUS_SB 177 fs/hfsplus/super.c block = HFSPLUS_SB(sb).blockoffset; HFSPLUS_SB 178 fs/hfsplus/super.c block += (HFSPLUS_SB(sb).sect_count - 2) >> (sb->s_blocksize_bits - 9); HFSPLUS_SB 179 fs/hfsplus/super.c offset = ((HFSPLUS_SB(sb).sect_count - 2) << 9) & (sb->s_blocksize - 1); HFSPLUS_SB 180 fs/hfsplus/super.c printk(KERN_DEBUG "hfs: backup: %u,%u,%u,%u\n", HFSPLUS_SB(sb).blockoffset, HFSPLUS_SB 181 fs/hfsplus/super.c HFSPLUS_SB(sb).sect_count, block, offset); HFSPLUS_SB 186 fs/hfsplus/super.c memcpy(vhdr, HFSPLUS_SB(sb).s_vhdr, sizeof(*vhdr)); HFSPLUS_SB 193 fs/hfsplus/super.c HFSPLUS_SB(sb).flags &= ~HFSPLUS_SB_WRITEBACKUP; HFSPLUS_SB 202 fs/hfsplus/super.c if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) { HFSPLUS_SB 203 fs/hfsplus/super.c struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; HFSPLUS_SB 208 fs/hfsplus/super.c mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 209 fs/hfsplus/super.c sync_dirty_buffer(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 212 fs/hfsplus/super.c hfs_btree_close(HFSPLUS_SB(sb).cat_tree); HFSPLUS_SB 213 fs/hfsplus/super.c hfs_btree_close(HFSPLUS_SB(sb).ext_tree); HFSPLUS_SB 214 fs/hfsplus/super.c iput(HFSPLUS_SB(sb).alloc_file); HFSPLUS_SB 215 fs/hfsplus/super.c iput(HFSPLUS_SB(sb).hidden_dir); HFSPLUS_SB 216 fs/hfsplus/super.c brelse(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 217 fs/hfsplus/super.c if (HFSPLUS_SB(sb).nls) HFSPLUS_SB 218 fs/hfsplus/super.c unload_nls(HFSPLUS_SB(sb).nls); HFSPLUS_SB 229 fs/hfsplus/super.c buf->f_blocks = HFSPLUS_SB(sb).total_blocks << HFSPLUS_SB(sb).fs_shift; HFSPLUS_SB 230 fs/hfsplus/super.c buf->f_bfree = HFSPLUS_SB(sb).free_blocks << HFSPLUS_SB(sb).fs_shift; HFSPLUS_SB 233 fs/hfsplus/super.c buf->f_ffree = 0xFFFFFFFF - HFSPLUS_SB(sb).next_cnid; HFSPLUS_SB 244 fs/hfsplus/super.c struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr; HFSPLUS_SB 248 fs/hfsplus/super.c sbi.nls = HFSPLUS_SB(sb).nls; HFSPLUS_SB 324 fs/hfsplus/super.c vhdr = HFSPLUS_SB(sb).s_vhdr; HFSPLUS_SB 333 fs/hfsplus/super.c HFSPLUS_SB(sb).total_blocks = be32_to_cpu(vhdr->total_blocks); HFSPLUS_SB 334 fs/hfsplus/super.c HFSPLUS_SB(sb).free_blocks = be32_to_cpu(vhdr->free_blocks); HFSPLUS_SB 335 fs/hfsplus/super.c HFSPLUS_SB(sb).next_alloc = be32_to_cpu(vhdr->next_alloc); HFSPLUS_SB 336 fs/hfsplus/super.c HFSPLUS_SB(sb).next_cnid = be32_to_cpu(vhdr->next_cnid); HFSPLUS_SB 337 fs/hfsplus/super.c HFSPLUS_SB(sb).file_count = be32_to_cpu(vhdr->file_count); HFSPLUS_SB 338 fs/hfsplus/super.c HFSPLUS_SB(sb).folder_count = be32_to_cpu(vhdr->folder_count); HFSPLUS_SB 339 fs/hfsplus/super.c HFSPLUS_SB(sb).data_clump_blocks = be32_to_cpu(vhdr->data_clump_sz) >> HFSPLUS_SB(sb).alloc_blksz_shift; HFSPLUS_SB 340 fs/hfsplus/super.c if (!HFSPLUS_SB(sb).data_clump_blocks) HFSPLUS_SB 341 fs/hfsplus/super.c HFSPLUS_SB(sb).data_clump_blocks = 1; HFSPLUS_SB 342 fs/hfsplus/super.c HFSPLUS_SB(sb).rsrc_clump_blocks = be32_to_cpu(vhdr->rsrc_clump_sz) >> HFSPLUS_SB(sb).alloc_blksz_shift; HFSPLUS_SB 343 fs/hfsplus/super.c if (!HFSPLUS_SB(sb).rsrc_clump_blocks) HFSPLUS_SB 344 fs/hfsplus/super.c HFSPLUS_SB(sb).rsrc_clump_blocks = 1; HFSPLUS_SB 367 fs/hfsplus/super.c HFSPLUS_SB(sb).ext_tree = hfs_btree_open(sb, HFSPLUS_EXT_CNID); HFSPLUS_SB 368 fs/hfsplus/super.c if (!HFSPLUS_SB(sb).ext_tree) { HFSPLUS_SB 372 fs/hfsplus/super.c HFSPLUS_SB(sb).cat_tree = hfs_btree_open(sb, HFSPLUS_CAT_CNID); HFSPLUS_SB 373 fs/hfsplus/super.c if (!HFSPLUS_SB(sb).cat_tree) { HFSPLUS_SB 384 fs/hfsplus/super.c HFSPLUS_SB(sb).alloc_file = inode; HFSPLUS_SB 403 fs/hfsplus/super.c hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); HFSPLUS_SB 414 fs/hfsplus/super.c HFSPLUS_SB(sb).hidden_dir = inode; HFSPLUS_SB 429 fs/hfsplus/super.c mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 430 fs/hfsplus/super.c sync_dirty_buffer(HFSPLUS_SB(sb).s_vhbh); HFSPLUS_SB 432 fs/hfsplus/super.c if (!HFSPLUS_SB(sb).hidden_dir) { HFSPLUS_SB 434 fs/hfsplus/super.c HFSPLUS_SB(sb).hidden_dir = hfsplus_new_inode(sb, S_IFDIR); HFSPLUS_SB 435 fs/hfsplus/super.c hfsplus_create_cat(HFSPLUS_SB(sb).hidden_dir->i_ino, sb->s_root->d_inode, HFSPLUS_SB 436 fs/hfsplus/super.c &str, HFSPLUS_SB(sb).hidden_dir); HFSPLUS_SB 437 fs/hfsplus/super.c mark_inode_dirty(HFSPLUS_SB(sb).hidden_dir); HFSPLUS_SB 124 fs/hfsplus/unicode.c struct nls_table *nls = HFSPLUS_SB(sb).nls; HFSPLUS_SB 135 fs/hfsplus/unicode.c compose = !(HFSPLUS_SB(sb).flags & HFSPLUS_SB_NODECOMPOSE); HFSPLUS_SB 249 fs/hfsplus/unicode.c int size = HFSPLUS_SB(sb).nls->char2uni(astr, len, uc); HFSPLUS_SB 296 fs/hfsplus/unicode.c decompose = !(HFSPLUS_SB(sb).flags & HFSPLUS_SB_NODECOMPOSE); HFSPLUS_SB 333 fs/hfsplus/unicode.c casefold = (HFSPLUS_SB(sb).flags & HFSPLUS_SB_CASEFOLD); HFSPLUS_SB 334 fs/hfsplus/unicode.c decompose = !(HFSPLUS_SB(sb).flags & HFSPLUS_SB_NODECOMPOSE); HFSPLUS_SB 376 fs/hfsplus/unicode.c casefold = (HFSPLUS_SB(sb).flags & HFSPLUS_SB_CASEFOLD); HFSPLUS_SB 377 fs/hfsplus/unicode.c decompose = !(HFSPLUS_SB(sb).flags & HFSPLUS_SB_NODECOMPOSE); HFSPLUS_SB 68 fs/hfsplus/wrapper.c if (HFSPLUS_SB(sb).session >= 0) { HFSPLUS_SB 69 fs/hfsplus/wrapper.c te.cdte_track = HFSPLUS_SB(sb).session; HFSPLUS_SB 121 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).flags |= HFSPLUS_SB_HFSX; HFSPLUS_SB 142 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).alloc_blksz = blocksize; HFSPLUS_SB 143 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).alloc_blksz_shift = 0; HFSPLUS_SB 145 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).alloc_blksz_shift++; HFSPLUS_SB 146 fs/hfsplus/wrapper.c blocksize = min(HFSPLUS_SB(sb).alloc_blksz, (u32)PAGE_SIZE); HFSPLUS_SB 157 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).blockoffset = part_start >> HFSPLUS_SB 159 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).sect_count = part_size; HFSPLUS_SB 160 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).fs_shift = HFSPLUS_SB(sb).alloc_blksz_shift - HFSPLUS_SB 168 fs/hfsplus/wrapper.c if (vhdr->signature != (HFSPLUS_SB(sb).flags & HFSPLUS_SB_HFSX ? HFSPLUS_SB 172 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).s_vhbh = bh; HFSPLUS_SB 173 fs/hfsplus/wrapper.c HFSPLUS_SB(sb).s_vhdr = vhdr;