Lines Matching refs:alloc_copy
390 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_shutdown_local_alloc() local
442 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
443 if (!alloc_copy) { in ocfs2_shutdown_local_alloc()
447 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc()
463 status = ocfs2_sync_local_to_main(osb, handle, alloc_copy, in ocfs2_shutdown_local_alloc()
483 kfree(alloc_copy); in ocfs2_shutdown_local_alloc()
495 struct ocfs2_dinode **alloc_copy) in ocfs2_begin_local_alloc_recovery() argument
504 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
524 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
525 if (!(*alloc_copy)) { in ocfs2_begin_local_alloc_recovery()
529 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
541 kfree(*alloc_copy); in ocfs2_begin_local_alloc_recovery()
542 *alloc_copy = NULL; in ocfs2_begin_local_alloc_recovery()
1260 struct ocfs2_dinode *alloc_copy = NULL; in ocfs2_local_alloc_slide_window() local
1291 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1292 if (!alloc_copy) { in ocfs2_local_alloc_slide_window()
1297 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
1311 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()