Home
last modified time | relevance | path

Searched refs:factor (Results 1 – 10 of 10) sorted by relevance

/fs/btrfs/
Dmisc.h35 static inline u64 div_factor(u64 num, int factor) in div_factor() argument
37 if (factor == 10) in div_factor()
39 num *= factor; in div_factor()
43 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument
45 if (factor == 100) in div_factor_fine()
47 num *= factor; in div_factor_fine()
Dspace-info.c264 int factor; in btrfs_update_space_info() local
266 factor = btrfs_bg_type_to_factor(flags); in btrfs_update_space_info()
272 found->disk_total += total_bytes * factor; in btrfs_update_space_info()
274 found->disk_used += bytes_used * factor; in btrfs_update_space_info()
304 int factor; in calc_available_free_space() local
319 factor = btrfs_bg_type_to_factor(profile); in calc_available_free_space()
320 avail = div_u64(avail, factor); in calc_available_free_space()
Dsuper.c2192 unsigned factor = 1; in btrfs_statfs() local
2208 factor = btrfs_bg_type_to_factor( in btrfs_statfs()
2227 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs()
2229 buf->f_bfree = buf->f_blocks - (div_u64(total_used, factor) >> bits); in btrfs_statfs()
2240 buf->f_bavail = div_u64(total_free_data, factor); in btrfs_statfs()
2244 buf->f_bavail += div_u64(total_free_data, factor); in btrfs_statfs()
Dblock-group.c916 int factor; in btrfs_remove_block_group() local
935 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_remove_block_group()
1099 < block_group->length * factor); in btrfs_remove_block_group()
1103 block_group->space_info->disk_total -= block_group->length * factor; in btrfs_remove_block_group()
2878 int factor; in btrfs_update_block_group() local
2897 factor = btrfs_bg_type_to_factor(cache->flags); in btrfs_update_block_group()
2926 cache->space_info->disk_used += num_bytes * factor; in btrfs_update_block_group()
2936 cache->space_info->disk_used -= num_bytes * factor; in btrfs_update_block_group()
Dvolumes.c3535 int factor; in chunk_drange_filter() local
3542 factor = calc_data_stripes(type, num_stripes); in chunk_drange_filter()
3551 stripe_length = div_u64(stripe_length, factor); in chunk_drange_filter()
5689 u32 factor = 0; in __btrfs_map_block_for_discard() local
5744 factor = map->num_stripes / sub_stripes; in __btrfs_map_block_for_discard()
5747 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in __btrfs_map_block_for_discard()
5749 stripes_per_dev = div_u64_rem(stripe_cnt, factor, in __btrfs_map_block_for_discard()
5751 div_u64_rem(stripe_nr_end - 1, factor, &last_stripe); in __btrfs_map_block_for_discard()
6193 u32 factor = map->num_stripes / map->sub_stripes; in __btrfs_map_block() local
6195 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in __btrfs_map_block()
Dextent-tree.c5677 int factor; in btrfs_account_ro_block_groups_free_space() local
5692 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_account_ro_block_groups_free_space()
5694 block_group->used) * factor; in btrfs_account_ro_block_groups_free_space()
Dscrub.c3021 int factor = map->num_stripes / map->sub_stripes; in scrub_stripe() local
3023 increment = map->stripe_len * factor; in scrub_stripe()
/fs/ubifs/
Dbudget.c626 int divisor, factor, f; in ubifs_reported_space() local
642 factor = UBIFS_BLOCK_SIZE; in ubifs_reported_space()
645 free *= factor; in ubifs_reported_space()
/fs/gfs2/
Dbmap.c392 sector_t factor = 1, block = 0; in metapath_to_block() local
397 block += mp->mp_list[hgt] * factor; in metapath_to_block()
398 factor *= sdp->sd_inptrs; in metapath_to_block()
472 u64 factor = 1; in gfs2_walk_metadata() local
482 max_len += mp->mp_list[hgt] * factor; in gfs2_walk_metadata()
484 factor *= sdp->sd_inptrs; in gfs2_walk_metadata()
495 len = ptrs * factor; in gfs2_walk_metadata()
497 ptrs = DIV_ROUND_UP_ULL(max_len, factor); in gfs2_walk_metadata()
505 len = ptrs * factor; in gfs2_walk_metadata()
524 factor *= sdp->sd_inptrs; in gfs2_walk_metadata()
[all …]
/fs/jfs/
Djfs_dmap.c4096 int complete, factor; in dbMapFileSizeToMapSize() local
4112 factor = in dbMapFileSizeToMapSize()
4114 complete = (u32) npages / factor; in dbMapFileSizeToMapSize()
4119 npages = (u32) npages % factor; in dbMapFileSizeToMapSize()