Lines Matching refs:bh

548 	struct buffer_head *bh;  in rootdir_empty()  local
550 bh = sb_bread(sb, block); in rootdir_empty()
551 if (!bh) in rootdir_empty()
554 de = (struct iso_directory_record *) (bh->b_data + offset); in rootdir_empty()
561 brelse(bh); in rootdir_empty()
573 struct buffer_head *bh = NULL, *pri_bh = NULL; in isofs_fill_super() local
620 if (!(bh = sb_bread(s, block))) in isofs_fill_super()
623 vdp = (struct iso_volume_descriptor *)bh->b_data; in isofs_fill_super()
624 hdp = (struct hs_volume_descriptor *)bh->b_data; in isofs_fill_super()
638 pri_bh = bh; in isofs_fill_super()
639 bh = NULL; in isofs_fill_super()
679 brelse(bh); in isofs_fill_super()
680 bh = NULL; in isofs_fill_super()
688 brelse(bh); in isofs_fill_super()
689 bh = pri_bh; in isofs_fill_super()
781 brelse(bh); in isofs_fill_super()
958 brelse(bh); in isofs_fill_super()
992 struct buffer_head **bh, unsigned long nblocks) in isofs_get_blocks() argument
1061 if (*bh) { in isofs_get_blocks()
1062 map_bh(*bh, inode->i_sb, firstext + b_off - offset); in isofs_get_blocks()
1064 *bh = sb_getblk(inode->i_sb, firstext+b_off-offset); in isofs_get_blocks()
1065 if (!*bh) in isofs_get_blocks()
1068 bh++; /* Next buffer head */ in isofs_get_blocks()
1143 struct buffer_head *bh = NULL; in isofs_read_level3_size() local
1165 if (!bh) { in isofs_read_level3_size()
1166 bh = sb_bread(inode->i_sb, block); in isofs_read_level3_size()
1167 if (!bh) in isofs_read_level3_size()
1170 de = (struct iso_directory_record *) (bh->b_data + offset); in isofs_read_level3_size()
1174 brelse(bh); in isofs_read_level3_size()
1175 bh = NULL; in isofs_read_level3_size()
1196 brelse(bh); in isofs_read_level3_size()
1197 bh = NULL; in isofs_read_level3_size()
1199 bh = sb_bread(inode->i_sb, block); in isofs_read_level3_size()
1200 if (!bh) in isofs_read_level3_size()
1202 memcpy((void *)tmpde+slop, bh->b_data, offset); in isofs_read_level3_size()
1221 if (bh) in isofs_read_level3_size()
1222 brelse(bh); in isofs_read_level3_size()
1226 if (bh) in isofs_read_level3_size()
1227 brelse(bh); in isofs_read_level3_size()
1249 struct buffer_head *bh = NULL; in isofs_read_inode() local
1258 bh = sb_bread(inode->i_sb, block); in isofs_read_inode()
1259 if (!bh) in isofs_read_inode()
1264 de = (struct iso_directory_record *) (bh->b_data + offset); in isofs_read_inode()
1276 memcpy(tmpde, bh->b_data + offset, frag1); in isofs_read_inode()
1277 brelse(bh); in isofs_read_inode()
1278 bh = sb_bread(inode->i_sb, ++block); in isofs_read_inode()
1279 if (!bh) in isofs_read_inode()
1281 memcpy((char *)tmpde+frag1, bh->b_data, de_len - frag1); in isofs_read_inode()
1428 if (bh) in isofs_read_inode()
1429 brelse(bh); in isofs_read_inode()