Searched refs:alloc_size (Results 1 – 8 of 8) sorted by relevance
/fs/ocfs2/ |
D | move_extents.c | 734 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument 737 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len() 741 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len() 756 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len() 765 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local 822 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range() 829 if (alloc_size > len_to_move) in __ocfs2_move_extents_range() 830 alloc_size = len_to_move; in __ocfs2_move_extents_range() 846 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range() 858 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range() [all …]
|
D | file.c | 1415 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1449 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents() 1459 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents() 1460 alloc_size = clusters; in ocfs2_allocate_unwritten_extents() 1470 ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1478 cpos += alloc_size; in ocfs2_allocate_unwritten_extents() 1479 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
|
D | xattr.c | 823 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local 833 &alloc_size, in ocfs2_xattr_shrink_size() 840 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size() 841 alloc_size = trunc_len; in ocfs2_xattr_shrink_size() 844 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size() 853 block, alloc_size); in ocfs2_xattr_shrink_size() 854 cpos += alloc_size; in ocfs2_xattr_shrink_size() 855 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
|
/fs/exofs/ |
D | ore_raid.c | 88 unsigned num_a1pa, alloc_size, i; in _sp2d_alloc() local 96 alloc_size = sizeof(_aab->__asp2d) + sizeof__a1pa * num_a1pa; in _sp2d_alloc() 99 alloc_size = sizeof(*_aab); in _sp2d_alloc() 102 _aab = kzalloc(alloc_size, GFP_KERNEL); in _sp2d_alloc() 104 ORE_DBGMSG("!! Failed to alloc sp2d size=%d\n", alloc_size); in _sp2d_alloc()
|
/fs/ |
D | select.c | 558 size_t size, alloc_size; in core_sys_select() local 588 alloc_size = 6 * size; in core_sys_select() 589 bits = kmalloc(alloc_size, GFP_KERNEL|__GFP_NOWARN); in core_sys_select() 590 if (!bits && alloc_size > PAGE_SIZE) in core_sys_select() 591 bits = vmalloc(alloc_size); in core_sys_select()
|
/fs/btrfs/ |
D | send.c | 6178 unsigned alloc_size; in btrfs_ioctl_send() local 6295 alloc_size = sizeof(struct clone_root) * (arg->clone_sources_count + 1); in btrfs_ioctl_send() 6297 sctx->clone_roots = kzalloc(alloc_size, GFP_KERNEL | __GFP_NOWARN); in btrfs_ioctl_send() 6299 sctx->clone_roots = vzalloc(alloc_size); in btrfs_ioctl_send() 6306 alloc_size = arg->clone_sources_count * sizeof(*arg->clone_sources); in btrfs_ioctl_send() 6309 clone_sources_tmp = kmalloc(alloc_size, GFP_KERNEL | __GFP_NOWARN); in btrfs_ioctl_send() 6311 clone_sources_tmp = vmalloc(alloc_size); in btrfs_ioctl_send() 6319 alloc_size); in btrfs_ioctl_send()
|
D | super.c | 2044 u64 alloc_size; in btrfs_calc_avail_data_space() local 2047 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space() 2049 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
|
D | ioctl.c | 4157 int alloc_size; in btrfs_ioctl_space_info() local 4205 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info() 4210 if (alloc_size > PAGE_SIZE) in btrfs_ioctl_space_info() 4214 dest = kmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_space_info() 4273 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
|