Lines Matching refs:bh
779 struct buffer_head * bh; in ext2_fill_super() local
835 if (!(bh = sb_bread(sb, logic_sb_block))) { in ext2_fill_super()
843 es = (struct ext2_super_block *) (((char *)bh->b_data) + offset); in ext2_fill_super()
930 brelse(bh); in ext2_fill_super()
940 bh = sb_bread(sb, logic_sb_block); in ext2_fill_super()
941 if(!bh) { in ext2_fill_super()
946 es = (struct ext2_super_block *) (((char *)bh->b_data) + offset); in ext2_fill_super()
992 sbi->s_sbh = bh; in ext2_fill_super()
1002 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super()
1156 brelse(bh); in ext2_fill_super()
1452 struct buffer_head *bh; in ext2_quota_read() local
1472 bh = sb_bread(sb, tmp_bh.b_blocknr); in ext2_quota_read()
1473 if (!bh) in ext2_quota_read()
1475 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read()
1476 brelse(bh); in ext2_quota_read()
1497 struct buffer_head *bh; in ext2_quota_write() local
1509 bh = sb_bread(sb, tmp_bh.b_blocknr); in ext2_quota_write()
1511 bh = sb_getblk(sb, tmp_bh.b_blocknr); in ext2_quota_write()
1512 if (unlikely(!bh)) { in ext2_quota_write()
1516 lock_buffer(bh); in ext2_quota_write()
1517 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
1518 flush_dcache_page(bh->b_page); in ext2_quota_write()
1519 set_buffer_uptodate(bh); in ext2_quota_write()
1520 mark_buffer_dirty(bh); in ext2_quota_write()
1521 unlock_buffer(bh); in ext2_quota_write()
1522 brelse(bh); in ext2_quota_write()