Home
last modified time | relevance | path

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

/fs/ksmbd/
Dksmbd_work.c44 struct aux_read *ar, *tmp; in ksmbd_free_work_struct() local
50 list_for_each_entry_safe(ar, tmp, &work->aux_read_list, entry) { in ksmbd_free_work_struct()
51 kvfree(ar->buf); in ksmbd_free_work_struct()
52 list_del(&ar->entry); in ksmbd_free_work_struct()
53 kfree(ar); in ksmbd_free_work_struct()
112 struct aux_read *ar = NULL; in __ksmbd_iov_pin_rsp() local
117 ar = kmalloc(sizeof(struct aux_read), GFP_KERNEL); in __ksmbd_iov_pin_rsp()
118 if (!ar) in __ksmbd_iov_pin_rsp()
130 kfree(ar); in __ksmbd_iov_pin_rsp()
152 ar->buf = aux_buf; in __ksmbd_iov_pin_rsp()
[all …]
/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()
364 err = ext4_journal_get_create_access(handle, ar->inode->i_sb, in ext4_alloc_branch()
376 len = ar->len; in ext4_alloc_branch()
385 err = ext4_handle_dirty_metadata(handle, ar->inode, bh); in ext4_alloc_branch()
393 ext4_free_blocks(handle, ar->inode, NULL, new_blocks[i], in ext4_alloc_branch()
[all …]
Dmballoc.c4047 struct ext4_allocation_request *ar) in ext4_mb_normalize_request() argument
4145 if (ar->pleft && start <= ar->lleft) { in ext4_mb_normalize_request()
4146 size -= ar->lleft + 1 - start; in ext4_mb_normalize_request()
4147 start = ar->lleft + 1; in ext4_mb_normalize_request()
4149 if (ar->pright && start + size - 1 >= ar->lright) in ext4_mb_normalize_request()
4150 size -= start + size - ar->lright; in ext4_mb_normalize_request()
4232 if (ar->pright && (ar->lright == (start + size)) && in ext4_mb_normalize_request()
4233 ar->pright >= size && in ext4_mb_normalize_request()
4234 ar->pright - size >= le32_to_cpu(es->s_first_data_block)) { in ext4_mb_normalize_request()
4236 ext4_get_group_no_and_offset(ac->ac_sb, ar->pright - size, in ext4_mb_normalize_request()
[all …]
Dballoc.c728 struct ext4_allocation_request ar; in ext4_new_meta_blocks() local
731 memset(&ar, 0, sizeof(ar)); in ext4_new_meta_blocks()
733 ar.inode = inode; in ext4_new_meta_blocks()
734 ar.goal = goal; in ext4_new_meta_blocks()
735 ar.len = count ? *count : 1; in ext4_new_meta_blocks()
736 ar.flags = flags; in ext4_new_meta_blocks()
738 ret = ext4_mb_new_blocks(handle, &ar, errp); in ext4_new_meta_blocks()
740 *count = ar.len; in ext4_new_meta_blocks()
747 EXT4_C2B(EXT4_SB(inode->i_sb), ar.len)); in ext4_new_meta_blocks()
Dextents.c4096 struct ext4_allocation_request ar; in ext4_ext_map_blocks() local
4215 ar.len = allocated = map->m_len; in ext4_ext_map_blocks()
4221 ar.lleft = map->m_lblk; in ext4_ext_map_blocks()
4222 err = ext4_ext_search_left(inode, path, &ar.lleft, &ar.pleft); in ext4_ext_map_blocks()
4225 ar.lright = map->m_lblk; in ext4_ext_map_blocks()
4226 err = ext4_ext_search_right(inode, path, &ar.lright, &ar.pright, &ex2); in ext4_ext_map_blocks()
4234 ar.len = allocated = map->m_len; in ext4_ext_map_blocks()
4261 ar.inode = inode; in ext4_ext_map_blocks()
4262 ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); in ext4_ext_map_blocks()
4263 ar.logical = map->m_lblk; in ext4_ext_map_blocks()
[all …]
/fs/
Dlibfs.c826 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_set() local
835 ar->size = n; in simple_transaction_set()
841 struct simple_transaction_argresp *ar; in simple_transaction_get() local
847 ar = (struct simple_transaction_argresp *)get_zeroed_page(GFP_KERNEL); in simple_transaction_get()
848 if (!ar) in simple_transaction_get()
856 free_page((unsigned long)ar); in simple_transaction_get()
860 file->private_data = ar; in simple_transaction_get()
864 if (copy_from_user(ar->data, buf, size)) in simple_transaction_get()
867 return ar->data; in simple_transaction_get()
873 struct simple_transaction_argresp *ar = file->private_data; in simple_transaction_read() local
[all …]