Searched refs:factor (Results 1 – 10 of 10) sorted by relevance
/fs/btrfs/ |
D | misc.h | 34 static inline u64 div_factor(u64 num, int factor) in div_factor() argument 36 if (factor == 10) in div_factor() 38 num *= factor; in div_factor() 42 static inline u64 div_factor_fine(u64 num, int factor) in div_factor_fine() argument 44 if (factor == 100) in div_factor_fine() 46 num *= factor; in div_factor_fine()
|
D | space-info.c | 120 int factor; in btrfs_update_space_info() local 122 factor = btrfs_bg_type_to_factor(flags); in btrfs_update_space_info() 128 found->disk_total += total_bytes * factor; in btrfs_update_space_info() 130 found->disk_used += bytes_used * factor; in btrfs_update_space_info() 170 int factor; in btrfs_can_overcommit() local 190 factor = btrfs_bg_type_to_factor(profile); in btrfs_can_overcommit() 191 avail = div_u64(avail, factor); in btrfs_can_overcommit()
|
D | super.c | 2057 unsigned factor = 1; in btrfs_statfs() local 2074 factor = btrfs_bg_type_to_factor( in btrfs_statfs() 2095 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs() 2097 buf->f_bfree = buf->f_blocks - (div_u64(total_used, factor) >> bits); in btrfs_statfs() 2108 buf->f_bavail = div_u64(total_free_data, factor); in btrfs_statfs() 2112 buf->f_bavail += div_u64(total_free_data, factor); in btrfs_statfs()
|
D | block-group.c | 881 int factor; in btrfs_remove_block_group() local 901 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_remove_block_group() 1065 < block_group->key.offset * factor); in btrfs_remove_block_group() 1069 block_group->space_info->disk_total -= block_group->key.offset * factor; in btrfs_remove_block_group() 2680 int factor; in btrfs_update_block_group() local 2699 factor = btrfs_bg_type_to_factor(cache->flags); in btrfs_update_block_group() 2728 cache->space_info->disk_used += num_bytes * factor; in btrfs_update_block_group() 2738 cache->space_info->disk_used -= num_bytes * factor; in btrfs_update_block_group()
|
D | volumes.c | 3636 int factor; in chunk_drange_filter() local 3643 factor = calc_data_stripes(type, num_stripes); in chunk_drange_filter() 3652 stripe_length = div_u64(stripe_length, factor); in chunk_drange_filter() 5783 u32 factor = 0; in __btrfs_map_block_for_discard() local 5838 factor = map->num_stripes / sub_stripes; in __btrfs_map_block_for_discard() 5841 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in __btrfs_map_block_for_discard() 5843 stripes_per_dev = div_u64_rem(stripe_cnt, factor, in __btrfs_map_block_for_discard() 5845 div_u64_rem(stripe_nr_end - 1, factor, &last_stripe); in __btrfs_map_block_for_discard() 6290 u32 factor = map->num_stripes / map->sub_stripes; in __btrfs_map_block() local 6292 stripe_nr = div_u64_rem(stripe_nr, factor, &stripe_index); in __btrfs_map_block()
|
D | extent-tree.c | 5558 int factor; in btrfs_account_ro_block_groups_free_space() local 5573 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_account_ro_block_groups_free_space() 5576 factor; in btrfs_account_ro_block_groups_free_space()
|
D | scrub.c | 3088 int factor = map->num_stripes / map->sub_stripes; in scrub_stripe() local 3090 increment = map->stripe_len * factor; in scrub_stripe()
|
/fs/ubifs/ |
D | budget.c | 626 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/ |
D | bmap.c | 392 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/ |
D | jfs_dmap.c | 4097 int complete, factor; in dbMapFileSizeToMapSize() local 4113 factor = in dbMapFileSizeToMapSize() 4115 complete = (u32) npages / factor; in dbMapFileSizeToMapSize() 4120 npages = (u32) npages % factor; in dbMapFileSizeToMapSize()
|