Lines Matching refs:bh
69 struct buffer_head *bh; in hfs_mdb_get() local
87 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
88 if (!bh) in hfs_mdb_get()
93 brelse(bh); in hfs_mdb_get()
119 brelse(bh); in hfs_mdb_get()
125 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get()
126 if (!bh) in hfs_mdb_get()
131 HFS_SB(sb)->mdb_bh = bh; in hfs_mdb_get()
155 bh = sb_bread512(sb, sect, mdb2); in hfs_mdb_get()
156 if (bh) { in hfs_mdb_get()
158 HFS_SB(sb)->alt_mdb_bh = bh; in hfs_mdb_get()
161 brelse(bh); in hfs_mdb_get()
179 bh = sb_bread(sb, off >> sb->s_blocksize_bits); in hfs_mdb_get()
180 if (!bh) { in hfs_mdb_get()
186 memcpy(ptr, bh->b_data + off2, len); in hfs_mdb_get()
187 brelse(bh); in hfs_mdb_get()
228 brelse(bh); in hfs_mdb_get()
301 struct buffer_head *bh; in hfs_mdb_commit() local
312 bh = sb_bread(sb, block); in hfs_mdb_commit()
313 if (!bh) { in hfs_mdb_commit()
319 lock_buffer(bh); in hfs_mdb_commit()
320 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit()
321 unlock_buffer(bh); in hfs_mdb_commit()
323 mark_buffer_dirty(bh); in hfs_mdb_commit()
324 brelse(bh); in hfs_mdb_commit()