Lines Matching refs:alloc_bh
288 struct buffer_head *alloc_bh = NULL; in ocfs2_load_local_alloc() local
314 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_load_local_alloc()
321 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_load_local_alloc()
360 osb->local_alloc_bh = alloc_bh; in ocfs2_load_local_alloc()
365 brelse(alloc_bh); in ocfs2_load_local_alloc()
498 struct buffer_head *alloc_bh = NULL; in ocfs2_begin_local_alloc_recovery() local
517 status = ocfs2_read_inode_block_full(inode, &alloc_bh, in ocfs2_begin_local_alloc_recovery()
524 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
529 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
531 alloc = (struct ocfs2_dinode *) alloc_bh->b_data; in ocfs2_begin_local_alloc_recovery()
534 ocfs2_compute_meta_ecc(osb->sb, alloc_bh->b_data, &alloc->i_check); in ocfs2_begin_local_alloc_recovery()
535 status = ocfs2_write_block(osb, alloc_bh, INODE_CACHE(inode)); in ocfs2_begin_local_alloc_recovery()
545 brelse(alloc_bh); in ocfs2_begin_local_alloc_recovery()