Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 7 of 7) sorted by relevance

/fs/ocfs2/
Dmove_extents.c756 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument
759 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len()
763 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len()
778 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len()
787 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local
844 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range()
851 if (alloc_size > len_to_move) in __ocfs2_move_extents_range()
852 alloc_size = len_to_move; in __ocfs2_move_extents_range()
868 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range()
880 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range()
[all …]
Dfile.c1444 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1478 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents()
1488 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1489 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1499 ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents()
1507 cpos += alloc_size; in ocfs2_allocate_unwritten_extents()
1508 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
Dxattr.c826 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local
836 &alloc_size, in ocfs2_xattr_shrink_size()
843 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size()
844 alloc_size = trunc_len; in ocfs2_xattr_shrink_size()
847 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size()
856 block, alloc_size); in ocfs2_xattr_shrink_size()
857 cpos += alloc_size; in ocfs2_xattr_shrink_size()
858 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
/fs/exofs/
Dore_raid.c88 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/
Dselect.c554 size_t size, alloc_size; in core_sys_select() local
584 alloc_size = 6 * size; in core_sys_select()
585 bits = kmalloc(alloc_size, GFP_KERNEL|__GFP_NOWARN); in core_sys_select()
586 if (!bits && alloc_size > PAGE_SIZE) in core_sys_select()
587 bits = vmalloc(alloc_size); in core_sys_select()
/fs/btrfs/
Dsuper.c1941 u64 alloc_size; in btrfs_calc_avail_data_space() local
1944 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
1946 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
Dioctl.c4231 int alloc_size; in btrfs_ioctl_space_info() local
4279 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info()
4284 if (alloc_size > PAGE_CACHE_SIZE) in btrfs_ioctl_space_info()
4288 dest = kmalloc(alloc_size, GFP_NOFS); in btrfs_ioctl_space_info()
4347 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()