Lines Matching refs:bh
129 struct buffer_head *bh,
133 struct buffer_head *bh,
137 struct buffer_head **bh,
757 struct buffer_head **bh, in ocfs2_sb_probe() argument
766 *bh = NULL; in ocfs2_sb_probe()
782 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
787 hdr = (struct ocfs1_vol_disk_hdr *) (*bh)->b_data; in ocfs2_sb_probe()
799 brelse(*bh); in ocfs2_sb_probe()
800 *bh = NULL; in ocfs2_sb_probe()
816 tmpstat = ocfs2_get_sector(sb, bh, in ocfs2_sb_probe()
824 di = (struct ocfs2_dinode *) (*bh)->b_data; in ocfs2_sb_probe()
827 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe()
829 brelse(*bh); in ocfs2_sb_probe()
830 *bh = NULL; in ocfs2_sb_probe()
1012 struct buffer_head *bh = NULL; in ocfs2_fill_super() local
1024 status = ocfs2_sb_probe(sb, &bh, §or_size, &stats); in ocfs2_fill_super()
1030 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
1036 brelse(bh); in ocfs2_fill_super()
1037 bh = NULL; in ocfs2_fill_super()
1208 brelse(bh); in ocfs2_fill_super()
1669 struct buffer_head *bh = NULL; in ocfs2_statfs() local
1685 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1691 bm_lock = (struct ocfs2_dinode *) bh->b_data; in ocfs2_statfs()
1711 brelse(bh); in ocfs2_statfs()
1811 struct buffer_head **bh, in ocfs2_get_sector() argument
1820 *bh = sb_getblk(sb, block); in ocfs2_get_sector()
1821 if (!*bh) { in ocfs2_get_sector()
1825 lock_buffer(*bh); in ocfs2_get_sector()
1826 if (!buffer_dirty(*bh)) in ocfs2_get_sector()
1827 clear_buffer_uptodate(*bh); in ocfs2_get_sector()
1828 unlock_buffer(*bh); in ocfs2_get_sector()
1829 ll_rw_block(READ, 1, bh); in ocfs2_get_sector()
1830 wait_on_buffer(*bh); in ocfs2_get_sector()
1831 if (!buffer_uptodate(*bh)) { in ocfs2_get_sector()
1833 brelse(*bh); in ocfs2_get_sector()
1834 *bh = NULL; in ocfs2_get_sector()
2039 struct buffer_head *bh, in ocfs2_initialize_super() argument
2045 struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; in ocfs2_initialize_super()
2350 struct buffer_head *bh, in ocfs2_verify_volume() argument
2361 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2362 bh->b_size, in ocfs2_verify_volume()
2384 } else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) { in ocfs2_verify_volume()
2388 (unsigned long long)bh->b_blocknr); in ocfs2_verify_volume()