Searched refs:ar (Results 1 – 5 of 5) sorted by relevance
/fs/ext4/ |
D | indirect.c | 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() [all …]
|
D | mballoc.c | 3062 struct ext4_allocation_request *ar) in ext4_mb_normalize_request() argument 3147 if (ar->pleft && start <= ar->lleft) { in ext4_mb_normalize_request() 3148 size -= ar->lleft + 1 - start; in ext4_mb_normalize_request() 3149 start = ar->lleft + 1; in ext4_mb_normalize_request() 3151 if (ar->pright && start + size - 1 >= ar->lright) in ext4_mb_normalize_request() 3152 size -= start + size - ar->lright; in ext4_mb_normalize_request() 3236 if (ar->pright && (ar->lright == (start + size))) { in ext4_mb_normalize_request() 3238 ext4_get_group_no_and_offset(ac->ac_sb, ar->pright - size, in ext4_mb_normalize_request() 3243 if (ar->pleft && (ar->lleft + 1 == start)) { in ext4_mb_normalize_request() 3245 ext4_get_group_no_and_offset(ac->ac_sb, ar->pleft + 1, in ext4_mb_normalize_request() [all …]
|
D | balloc.c | 647 struct ext4_allocation_request ar; in ext4_new_meta_blocks() local 650 memset(&ar, 0, sizeof(ar)); in ext4_new_meta_blocks() 652 ar.inode = inode; in ext4_new_meta_blocks() 653 ar.goal = goal; in ext4_new_meta_blocks() 654 ar.len = count ? *count : 1; in ext4_new_meta_blocks() 655 ar.flags = flags; in ext4_new_meta_blocks() 657 ret = ext4_mb_new_blocks(handle, &ar, errp); in ext4_new_meta_blocks() 659 *count = ar.len; in ext4_new_meta_blocks() 666 EXT4_C2B(EXT4_SB(inode->i_sb), ar.len)); in ext4_new_meta_blocks()
|
D | extents.c | 4270 struct ext4_allocation_request ar; in ext4_ext_map_blocks() local 4385 ar.len = allocated = map->m_len; in ext4_ext_map_blocks() 4392 ar.lleft = map->m_lblk; in ext4_ext_map_blocks() 4393 err = ext4_ext_search_left(inode, path, &ar.lleft, &ar.pleft); in ext4_ext_map_blocks() 4396 ar.lright = map->m_lblk; in ext4_ext_map_blocks() 4398 err = ext4_ext_search_right(inode, path, &ar.lright, &ar.pright, &ex2); in ext4_ext_map_blocks() 4406 ar.len = allocated = map->m_len; in ext4_ext_map_blocks() 4434 ar.inode = inode; in ext4_ext_map_blocks() 4435 ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); in ext4_ext_map_blocks() 4436 ar.logical = map->m_lblk; in ext4_ext_map_blocks() [all …]
|
/fs/ |
D | libfs.c | 742 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_set() local 751 ar->size = n; in simple_transaction_set() 757 struct simple_transaction_argresp *ar; in simple_transaction_get() local 763 ar = (struct simple_transaction_argresp *)get_zeroed_page(GFP_KERNEL); in simple_transaction_get() 764 if (!ar) in simple_transaction_get() 772 free_page((unsigned long)ar); in simple_transaction_get() 776 file->private_data = ar; in simple_transaction_get() 780 if (copy_from_user(ar->data, buf, size)) in simple_transaction_get() 783 return ar->data; in simple_transaction_get() 789 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_read() local [all …]
|