Home
last modified time | relevance | path

Searched refs:ar (Results 1 – 5 of 5) sorted by relevance

/fs/ext4/
Dindirect.c329 struct ext4_allocation_request *ar, in ext4_alloc_branch() argument
340 new_blocks[i] = ext4_mb_new_blocks(handle, ar, &err); in ext4_alloc_branch()
342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
343 ar->inode, ar->goal, in ext4_alloc_branch()
344 ar->flags & EXT4_MB_DELALLOC_RESERVED, in ext4_alloc_branch()
357 bh = branch[i].bh = sb_getblk(ar->inode->i_sb, new_blocks[i-1]); in ext4_alloc_branch()
375 len = ar->len; in ext4_alloc_branch()
384 err = ext4_handle_dirty_metadata(handle, ar->inode, bh); in ext4_alloc_branch()
392 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
393 ar->len, 0); in ext4_alloc_branch()
[all …]
Dmballoc.c3539 struct ext4_allocation_request *ar) in ext4_mb_normalize_request() argument
3637 if (ar->pleft && start <= ar->lleft) { in ext4_mb_normalize_request()
3638 size -= ar->lleft + 1 - start; in ext4_mb_normalize_request()
3639 start = ar->lleft + 1; in ext4_mb_normalize_request()
3641 if (ar->pright && start + size - 1 >= ar->lright) in ext4_mb_normalize_request()
3642 size -= start + size - ar->lright; in ext4_mb_normalize_request()
3724 if (ar->pright && (ar->lright == (start + size)) && in ext4_mb_normalize_request()
3725 ar->pright >= size && in ext4_mb_normalize_request()
3726 ar->pright - size >= le32_to_cpu(es->s_first_data_block)) { in ext4_mb_normalize_request()
3728 ext4_get_group_no_and_offset(ac->ac_sb, ar->pright - size, in ext4_mb_normalize_request()
[all …]
Dballoc.c722 struct ext4_allocation_request ar; in ext4_new_meta_blocks() local
725 memset(&ar, 0, sizeof(ar)); in ext4_new_meta_blocks()
727 ar.inode = inode; in ext4_new_meta_blocks()
728 ar.goal = goal; in ext4_new_meta_blocks()
729 ar.len = count ? *count : 1; in ext4_new_meta_blocks()
730 ar.flags = flags; in ext4_new_meta_blocks()
732 ret = ext4_mb_new_blocks(handle, &ar, errp); in ext4_new_meta_blocks()
734 *count = ar.len; in ext4_new_meta_blocks()
741 EXT4_C2B(EXT4_SB(inode->i_sb), ar.len)); in ext4_new_meta_blocks()
Dextents.c4130 struct ext4_allocation_request ar; in ext4_ext_map_blocks() local
4239 ar.len = allocated = map->m_len; in ext4_ext_map_blocks()
4245 ar.lleft = map->m_lblk; in ext4_ext_map_blocks()
4246 err = ext4_ext_search_left(inode, path, &ar.lleft, &ar.pleft); in ext4_ext_map_blocks()
4249 ar.lright = map->m_lblk; in ext4_ext_map_blocks()
4250 err = ext4_ext_search_right(inode, path, &ar.lright, &ar.pright, &ex2); in ext4_ext_map_blocks()
4258 ar.len = allocated = map->m_len; in ext4_ext_map_blocks()
4285 ar.inode = inode; in ext4_ext_map_blocks()
4286 ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); in ext4_ext_map_blocks()
4287 ar.logical = map->m_lblk; in ext4_ext_map_blocks()
[all …]
/fs/
Dlibfs.c814 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_set() local
823 ar->size = n; in simple_transaction_set()
829 struct simple_transaction_argresp *ar; in simple_transaction_get() local
835 ar = (struct simple_transaction_argresp *)get_zeroed_page(GFP_KERNEL); in simple_transaction_get()
836 if (!ar) in simple_transaction_get()
844 free_page((unsigned long)ar); in simple_transaction_get()
848 file->private_data = ar; in simple_transaction_get()
852 if (copy_from_user(ar->data, buf, size)) in simple_transaction_get()
855 return ar->data; in simple_transaction_get()
861 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_read() local
[all …]