Lines Matching refs:sbi
159 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_read_wrapper() local
174 sbi->s_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper()
175 if (!sbi->s_vhdr_buf) in hfsplus_read_wrapper()
177 sbi->s_backup_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper()
178 if (!sbi->s_backup_vhdr_buf) in hfsplus_read_wrapper()
183 sbi->s_vhdr_buf, (void **)&sbi->s_vhdr, in hfsplus_read_wrapper()
189 switch (sbi->s_vhdr->signature) { in hfsplus_read_wrapper()
191 set_bit(HFSPLUS_SB_HFSX, &sbi->flags); in hfsplus_read_wrapper()
196 if (!hfsplus_read_mdb(sbi->s_vhdr, &wd)) in hfsplus_read_wrapper()
215 sbi->s_backup_vhdr_buf, in hfsplus_read_wrapper()
216 (void **)&sbi->s_backup_vhdr, READ); in hfsplus_read_wrapper()
221 if (sbi->s_backup_vhdr->signature != sbi->s_vhdr->signature) { in hfsplus_read_wrapper()
226 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper()
233 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper()
234 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper()
235 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper()
248 sbi->blockoffset = in hfsplus_read_wrapper()
250 sbi->part_start = part_start; in hfsplus_read_wrapper()
251 sbi->sect_count = part_size; in hfsplus_read_wrapper()
252 sbi->fs_shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits; in hfsplus_read_wrapper()
256 kfree(sbi->s_backup_vhdr_buf); in hfsplus_read_wrapper()
258 kfree(sbi->s_vhdr_buf); in hfsplus_read_wrapper()