Lines Matching refs:alloc_copy

386 	struct ocfs2_dinode *alloc_copy = NULL;  in ocfs2_shutdown_local_alloc()  local
437 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
438 if (!alloc_copy) { in ocfs2_shutdown_local_alloc()
442 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc()
458 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
479 if (alloc_copy) in ocfs2_shutdown_local_alloc()
480 kfree(alloc_copy); in ocfs2_shutdown_local_alloc()
492 struct ocfs2_dinode **alloc_copy) in ocfs2_begin_local_alloc_recovery() argument
501 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
521 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
522 if (!(*alloc_copy)) { in ocfs2_begin_local_alloc_recovery()
526 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
537 if ((status < 0) && (*alloc_copy)) { in ocfs2_begin_local_alloc_recovery()
538 kfree(*alloc_copy); in ocfs2_begin_local_alloc_recovery()
539 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
1221 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_local_alloc_slide_window() local
1252 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1253 if (!alloc_copy) { in ocfs2_local_alloc_slide_window()
1258 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
1272 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1297 if (alloc_copy) in ocfs2_local_alloc_slide_window()
1298 kfree(alloc_copy); in ocfs2_local_alloc_slide_window()