Searched refs:alloc_size (Results 1 – 6 of 6) sorted by relevance
/fs/ocfs2/ |
D | move_extents.c | 809 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument 812 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len() 816 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len() 831 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len() 840 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local 897 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range() 904 if (alloc_size > len_to_move) in __ocfs2_move_extents_range() 905 alloc_size = len_to_move; in __ocfs2_move_extents_range() 921 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range() 933 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range() [all …]
|
D | file.c | 1422 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local 1456 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents() 1466 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents() 1467 alloc_size = clusters; in ocfs2_allocate_unwritten_extents() 1477 ret = __ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents() 1485 cpos += alloc_size; in ocfs2_allocate_unwritten_extents() 1486 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
|
D | xattr.c | 824 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local 834 &alloc_size, in ocfs2_xattr_shrink_size() 841 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size() 842 alloc_size = trunc_len; in ocfs2_xattr_shrink_size() 845 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size() 854 block, alloc_size); in ocfs2_xattr_shrink_size() 855 cpos += alloc_size; in ocfs2_xattr_shrink_size() 856 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/btrfs/ |
D | super.c | 1326 u64 alloc_size; in btrfs_calc_avail_data_space() local 1329 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space() 1331 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
|
D | ioctl.c | 2824 int alloc_size; in btrfs_ioctl_space_info() local 2867 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info() 2872 if (alloc_size > PAGE_CACHE_SIZE) in btrfs_ioctl_space_info() 2876 dest = kmalloc(alloc_size, GFP_NOFS); in btrfs_ioctl_space_info() 2920 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
|