Lines Matching refs:ar

323 			     struct ext4_allocation_request *ar,  in ext4_alloc_branch()  argument
334 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch()
336 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
337 ar->inode, ar->goal, in ext4_alloc_branch()
338 ar->flags & EXT4_MB_DELALLOC_RESERVED, in ext4_alloc_branch()
348 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
366 len = ar->len; in ext4_alloc_branch()
375 err = ext4_handle_dirty_metadata(handle, ar->inode, bh); in ext4_alloc_branch()
389 ext4_forget(handle, 1, ar->inode, branch[i].bh, in ext4_alloc_branch()
391 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
392 (i == indirect_blks) ? ar->len : 1, 0); in ext4_alloc_branch()
413 struct ext4_allocation_request *ar, in ext4_splice_branch() argument
439 if (num == 0 && ar->len > 1) { in ext4_splice_branch()
441 for (i = 1; i < ar->len; i++) in ext4_splice_branch()
458 err = ext4_handle_dirty_metadata(handle, ar->inode, where->bh); in ext4_splice_branch()
465 ext4_mark_inode_dirty(handle, ar->inode); in ext4_splice_branch()
477 ext4_free_blocks(handle, ar->inode, where[i].bh, 0, 1, in ext4_splice_branch()
480 ext4_free_blocks(handle, ar->inode, NULL, le32_to_cpu(where[num].key), in ext4_splice_branch()
481 ar->len, 0); in ext4_splice_branch()
518 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.flags |= EXT4_MB_USE_RESERVED; in ext4_ind_map_blocks()
582 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
591 ar.len = ext4_blks_to_allocate(partial, indirect_blks, in ext4_ind_map_blocks()
597 err = ext4_alloc_branch(handle, &ar, indirect_blks, in ext4_ind_map_blocks()
608 err = ext4_splice_branch(handle, &ar, partial, indirect_blks); in ext4_ind_map_blocks()
615 count = ar.len; in ext4_ind_map_blocks()