Lines Matching refs:alloc_bh
273 struct buffer_head *alloc_bh = NULL; in ocfs2_load_local_alloc() local
299 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
306 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_load_local_alloc()
345 osb->local_alloc_bh = alloc_bh; in ocfs2_load_local_alloc()
350 brelse(alloc_bh); in ocfs2_load_local_alloc()
482 struct buffer_head *alloc_bh = NULL; in ocfs2_begin_local_alloc_recovery() local
501 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
508 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
513 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
515 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_begin_local_alloc_recovery()
518 ocfs2_compute_meta_ecc(osb->sb, alloc_bh->b_data, &alloc->i_check); in ocfs2_begin_local_alloc_recovery()
519 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
529 brelse(alloc_bh); in ocfs2_begin_local_alloc_recovery()