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 kfree(alloc_copy); in ocfs2_shutdown_local_alloc()
491 struct ocfs2_dinode **alloc_copy) in ocfs2_begin_local_alloc_recovery() argument
500 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
520 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
521 if (!(*alloc_copy)) { in ocfs2_begin_local_alloc_recovery()
525 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
537 kfree(*alloc_copy); in ocfs2_begin_local_alloc_recovery()
538 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
1258 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_local_alloc_slide_window() local
1289 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1290 if (!alloc_copy) { in ocfs2_local_alloc_slide_window()
1295 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
1309 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1334 kfree(alloc_copy); in ocfs2_local_alloc_slide_window()