Lines Matching refs:ar

322 			     struct ext4_allocation_request *ar,  in ext4_alloc_branch()  argument
333 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch()
335 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
336 ar->inode, ar->goal, in ext4_alloc_branch()
337 ar->flags & EXT4_MB_DELALLOC_RESERVED, in ext4_alloc_branch()
347 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
365 len = ar->len; in ext4_alloc_branch()
374 err = ext4_handle_dirty_metadata(handle, ar->inode, bh); in ext4_alloc_branch()
388 ext4_forget(handle, 1, ar->inode, branch[i].bh, in ext4_alloc_branch()
390 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
391 (i == indirect_blks) ? ar->len : 1, 0); in ext4_alloc_branch()
412 struct ext4_allocation_request *ar, in ext4_splice_branch() argument
438 if (num == 0 && ar->len > 1) { in ext4_splice_branch()
440 for (i = 1; i < ar->len; i++) in ext4_splice_branch()
457 err = ext4_handle_dirty_metadata(handle, ar->inode, where->bh); in ext4_splice_branch()
464 ext4_mark_inode_dirty(handle, ar->inode); in ext4_splice_branch()
476 ext4_free_blocks(handle, ar->inode, where[i].bh, 0, 1, in ext4_splice_branch()
479 ext4_free_blocks(handle, ar->inode, NULL, le32_to_cpu(where[num].key), in ext4_splice_branch()
480 ar->len, 0); in ext4_splice_branch()
517 struct ext4_allocation_request ar; in ext4_ind_map_blocks() local
572 memset(&ar, 0, sizeof(ar)); in ext4_ind_map_blocks()
573 ar.inode = inode; in ext4_ind_map_blocks()
574 ar.logical = map->m_lblk; in ext4_ind_map_blocks()
576 ar.flags = EXT4_MB_HINT_DATA; in ext4_ind_map_blocks()
578 ar.flags |= EXT4_MB_DELALLOC_RESERVED; in ext4_ind_map_blocks()
580 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
589 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
595 err = ext4_alloc_branch(handle, &ar, indirect_blks, in ext4_ind_map_blocks()
606 err = ext4_splice_branch(handle, &ar, partial, indirect_blks); in ext4_ind_map_blocks()
613 count = ar.len; in ext4_ind_map_blocks()