Lines Matching refs:bh

129 			       struct buffer_head *bh,
133 struct buffer_head *bh,
137 struct buffer_head **bh,
759 struct buffer_head **bh, in ocfs2_sb_probe() argument
768 *bh = NULL; in ocfs2_sb_probe()
784 status = ocfs2_get_sector(sb, bh, 0, *sector_size); in ocfs2_sb_probe()
789 hdr = (struct ocfs1_vol_disk_hdr *) (*bh)->b_data; in ocfs2_sb_probe()
801 brelse(*bh); in ocfs2_sb_probe()
802 *bh = NULL; in ocfs2_sb_probe()
818 tmpstat = ocfs2_get_sector(sb, bh, in ocfs2_sb_probe()
826 di = (struct ocfs2_dinode *) (*bh)->b_data; in ocfs2_sb_probe()
829 tmpstat = ocfs2_verify_volume(di, *bh, blksize, stats); in ocfs2_sb_probe()
831 brelse(*bh); in ocfs2_sb_probe()
832 *bh = NULL; in ocfs2_sb_probe()
1014 struct buffer_head *bh = NULL; in ocfs2_fill_super() local
1026 status = ocfs2_sb_probe(sb, &bh, &sector_size, &stats); in ocfs2_fill_super()
1032 status = ocfs2_initialize_super(sb, bh, sector_size, &stats); in ocfs2_fill_super()
1038 brelse(bh); in ocfs2_fill_super()
1039 bh = NULL; in ocfs2_fill_super()
1210 brelse(bh); in ocfs2_fill_super()
1682 struct buffer_head *bh = NULL; in ocfs2_statfs() local
1698 status = ocfs2_inode_lock(inode, &bh, 0); in ocfs2_statfs()
1704 bm_lock = (struct ocfs2_dinode *) bh->b_data; in ocfs2_statfs()
1724 brelse(bh); in ocfs2_statfs()
1822 struct buffer_head **bh, in ocfs2_get_sector() argument
1831 *bh = sb_getblk(sb, block); in ocfs2_get_sector()
1832 if (!*bh) { in ocfs2_get_sector()
1836 lock_buffer(*bh); in ocfs2_get_sector()
1837 if (!buffer_dirty(*bh)) in ocfs2_get_sector()
1838 clear_buffer_uptodate(*bh); in ocfs2_get_sector()
1839 unlock_buffer(*bh); in ocfs2_get_sector()
1840 ll_rw_block(READ, 1, bh); in ocfs2_get_sector()
1841 wait_on_buffer(*bh); in ocfs2_get_sector()
1842 if (!buffer_uptodate(*bh)) { in ocfs2_get_sector()
1844 brelse(*bh); in ocfs2_get_sector()
1845 *bh = NULL; in ocfs2_get_sector()
2050 struct buffer_head *bh, in ocfs2_initialize_super() argument
2056 struct ocfs2_dinode *di = (struct ocfs2_dinode *)bh->b_data; in ocfs2_initialize_super()
2361 struct buffer_head *bh, in ocfs2_verify_volume() argument
2372 status = ocfs2_block_check_validate(bh->b_data, in ocfs2_verify_volume()
2373 bh->b_size, in ocfs2_verify_volume()
2395 } else if (bh->b_blocknr != le64_to_cpu(di->i_blkno)) { in ocfs2_verify_volume()
2399 (unsigned long long)bh->b_blocknr); in ocfs2_verify_volume()