Lines Matching refs:alloc_copy
376 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_shutdown_local_alloc() local
428 alloc_copy = kmemdup(alloc, bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
429 if (!alloc_copy) { in ocfs2_shutdown_local_alloc()
448 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
468 kfree(alloc_copy); in ocfs2_shutdown_local_alloc()
480 struct ocfs2_dinode **alloc_copy) in ocfs2_begin_local_alloc_recovery() argument
489 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
509 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
510 if (!(*alloc_copy)) { in ocfs2_begin_local_alloc_recovery()
514 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
526 kfree(*alloc_copy); in ocfs2_begin_local_alloc_recovery()
527 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
1244 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_local_alloc_slide_window() local
1275 alloc_copy = kmemdup(alloc, osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1276 if (!alloc_copy) { in ocfs2_local_alloc_slide_window()
1294 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_local_alloc_slide_window()
1317 kfree(alloc_copy); in ocfs2_local_alloc_slide_window()