Lines Matching refs:alloc_bh
274 struct buffer_head *alloc_bh = NULL; in ocfs2_load_local_alloc() local
300 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
307 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_load_local_alloc()
346 osb->local_alloc_bh = alloc_bh; in ocfs2_load_local_alloc()
351 brelse(alloc_bh); in ocfs2_load_local_alloc()
483 struct buffer_head *alloc_bh = NULL; in ocfs2_begin_local_alloc_recovery() local
502 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
509 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
514 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
516 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_begin_local_alloc_recovery()
519 ocfs2_compute_meta_ecc(osb->sb, alloc_bh->b_data, &alloc->i_check); in ocfs2_begin_local_alloc_recovery()
520 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
530 brelse(alloc_bh); in ocfs2_begin_local_alloc_recovery()