Home
last modified time | relevance | path

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

/fs/ocfs2/
Dmove_extents.c733 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument
736 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len()
740 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len()
755 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len()
764 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local
821 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range()
828 if (alloc_size > len_to_move) in __ocfs2_move_extents_range()
829 alloc_size = len_to_move; in __ocfs2_move_extents_range()
845 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range()
857 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range()
[all …]
Dfile.c1441 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1475 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents()
1485 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1486 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1496 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents()
1504 cpos += alloc_size; in ocfs2_allocate_unwritten_extents()
1505 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
Dxattr.c818 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local
828 &alloc_size, in ocfs2_xattr_shrink_size()
835 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size()
836 alloc_size = trunc_len; in ocfs2_xattr_shrink_size()
839 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size()
848 block, alloc_size); in ocfs2_xattr_shrink_size()
849 cpos += alloc_size; in ocfs2_xattr_shrink_size()
850 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
/fs/
Dselect.c630 size_t size, alloc_size; in core_sys_select() local
660 alloc_size = 6 * size; in core_sys_select()
661 bits = kvmalloc(alloc_size, GFP_KERNEL); in core_sys_select()
/fs/gfs2/
Dbmap.c942 u64 alloc_size; in gfs2_iomap_get() local
948 alloc_size = len << inode->i_blkbits; in gfs2_iomap_get()
949 if (alloc_size < iomap->length) in gfs2_iomap_get()
950 iomap->length = alloc_size; in gfs2_iomap_get()
/fs/btrfs/
Dsuper.c2153 u64 alloc_size; in btrfs_calc_avail_data_space() local
2156 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2158 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
Dioctl.c3550 int alloc_size; in btrfs_ioctl_space_info() local
3595 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info()
3600 if (alloc_size > PAGE_SIZE) in btrfs_ioctl_space_info()
3604 dest = kmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_space_info()
3660 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
Dsend.c7248 size_t alloc_size; in btrfs_ioctl_send() local
7342 alloc_size = array_size(sizeof(*arg->clone_sources), in btrfs_ioctl_send()
7346 clone_sources_tmp = kvmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_send()
7353 alloc_size); in btrfs_ioctl_send()