Lines Matching refs:sb
46 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, in hfsplus_submit_bio() argument
60 io_size = hfsplus_min_io_size(sb); in hfsplus_submit_bio()
67 bio->bi_bdev = sb->s_bdev; in hfsplus_submit_bio()
124 static int hfsplus_get_last_session(struct super_block *sb, in hfsplus_get_last_session() argument
133 *size = sb->s_bdev->bd_inode->i_size >> 9; in hfsplus_get_last_session()
135 if (HFSPLUS_SB(sb)->session >= 0) { in hfsplus_get_last_session()
136 te.cdte_track = HFSPLUS_SB(sb)->session; in hfsplus_get_last_session()
138 res = ioctl_by_bdev(sb->s_bdev, in hfsplus_get_last_session()
148 res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, in hfsplus_get_last_session()
157 int hfsplus_read_wrapper(struct super_block *sb) in hfsplus_read_wrapper() argument
159 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_read_wrapper()
166 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper()
170 if (hfsplus_get_last_session(sb, &part_start, &part_size)) in hfsplus_read_wrapper()
174 sbi->s_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper()
177 sbi->s_backup_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper()
182 error = hfsplus_submit_bio(sb, part_start + HFSPLUS_VOLHEAD_SECTOR, in hfsplus_read_wrapper()
209 if (hfs_part_find(sb, &part_start, &part_size)) in hfsplus_read_wrapper()
214 error = hfsplus_submit_bio(sb, part_start + part_size - 2, in hfsplus_read_wrapper()
243 if (sb_set_blocksize(sb, blocksize) != blocksize) { in hfsplus_read_wrapper()
249 part_start >> (sb->s_blocksize_bits - HFSPLUS_SECTOR_SHIFT); in hfsplus_read_wrapper()
252 sbi->fs_shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits; in hfsplus_read_wrapper()