Lines Matching refs:sb
223 struct super_block *sb = inode->i_sb; in hfsplus_get_block() local
224 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_get_block()
277 map_bh(bh_result, sb, sector); in hfsplus_get_block()
281 hip->phys_size += sb->s_blocksize; in hfsplus_get_block()
283 inode_add_bytes(inode, sb->s_blocksize); in hfsplus_get_block()
330 static int hfsplus_free_extents(struct super_block *sb, in hfsplus_free_extents() argument
353 err = hfsplus_block_free(sb, start, count); in hfsplus_free_extents()
364 err = hfsplus_block_free(sb, start + count, block_nr); in hfsplus_free_extents()
386 int hfsplus_free_fork(struct super_block *sb, u32 cnid, in hfsplus_free_fork() argument
402 res = hfsplus_free_extents(sb, fork->extents, blocks, blocks); in hfsplus_free_fork()
408 res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd); in hfsplus_free_fork()
417 hfsplus_free_extents(sb, ext_entry, in hfsplus_free_fork()
430 struct super_block *sb = inode->i_sb; in hfsplus_file_extend() local
431 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_file_extend()
456 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend()
458 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend()
466 res = sb_issue_zeroout(sb, start, len, GFP_NOFS); in hfsplus_file_extend()
533 struct super_block *sb = inode->i_sb; in hfsplus_file_truncate() local
562 blk_cnt = (inode->i_size + HFSPLUS_SB(sb)->alloc_blksz - 1) >> in hfsplus_file_truncate()
563 HFSPLUS_SB(sb)->alloc_blksz_shift; in hfsplus_file_truncate()
571 res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd); in hfsplus_file_truncate()
579 hfsplus_free_extents(sb, hip->first_extents, in hfsplus_file_truncate()
589 hfsplus_free_extents(sb, hip->cached_extents, in hfsplus_file_truncate()
607 hip->fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> in hfsplus_file_truncate()
608 sb->s_blocksize_bits; in hfsplus_file_truncate()
609 inode_set_bytes(inode, hip->fs_blocks << sb->s_blocksize_bits); in hfsplus_file_truncate()