Lines Matching refs:bh
784 struct buffer_head * bh; in ext2_fill_super() local
840 if (!(bh = sb_bread(sb, logic_sb_block))) { in ext2_fill_super()
848 es = (struct ext2_super_block *) (((char *)bh->b_data) + offset); in ext2_fill_super()
936 brelse(bh); in ext2_fill_super()
946 bh = sb_bread(sb, logic_sb_block); in ext2_fill_super()
947 if(!bh) { in ext2_fill_super()
952 es = (struct ext2_super_block *) (((char *)bh->b_data) + offset); in ext2_fill_super()
998 sbi->s_sbh = bh; in ext2_fill_super()
1008 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super()
1162 brelse(bh); in ext2_fill_super()
1458 struct buffer_head *bh; in ext2_quota_read() local
1478 bh = sb_bread(sb, tmp_bh.b_blocknr); in ext2_quota_read()
1479 if (!bh) in ext2_quota_read()
1481 memcpy(data, bh->b_data+offset, tocopy); in ext2_quota_read()
1482 brelse(bh); in ext2_quota_read()
1503 struct buffer_head *bh; in ext2_quota_write() local
1515 bh = sb_bread(sb, tmp_bh.b_blocknr); in ext2_quota_write()
1517 bh = sb_getblk(sb, tmp_bh.b_blocknr); in ext2_quota_write()
1518 if (unlikely(!bh)) { in ext2_quota_write()
1522 lock_buffer(bh); in ext2_quota_write()
1523 memcpy(bh->b_data+offset, data, tocopy); in ext2_quota_write()
1524 flush_dcache_page(bh->b_page); in ext2_quota_write()
1525 set_buffer_uptodate(bh); in ext2_quota_write()
1526 mark_buffer_dirty(bh); in ext2_quota_write()
1527 unlock_buffer(bh); in ext2_quota_write()
1528 brelse(bh); in ext2_quota_write()