Searched refs:factor (Results 1 – 9 of 9) sorted by relevance
/fs/btrfs/ |
D | space-info.c | 303 int factor, index; in btrfs_add_bg_to_space_info() local 305 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_add_bg_to_space_info() 311 found->disk_total += block_group->length * factor; in btrfs_add_bg_to_space_info() 313 found->disk_used += block_group->used * factor; in btrfs_add_bg_to_space_info() 350 int factor; in calc_available_free_space() local 365 factor = btrfs_bg_type_to_factor(profile); in calc_available_free_space() 366 avail = div_u64(avail, factor); in calc_available_free_space() 1828 int factor; in btrfs_account_ro_block_groups_free_space() local 1843 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_account_ro_block_groups_free_space() 1845 block_group->used) * factor; in btrfs_account_ro_block_groups_free_space()
|
D | super.c | 2047 unsigned factor = 1; in btrfs_statfs() local 2063 factor = btrfs_bg_type_to_factor( in btrfs_statfs() 2082 buf->f_blocks = div_u64(btrfs_super_total_bytes(disk_super), factor); in btrfs_statfs() 2084 buf->f_bfree = buf->f_blocks - (div_u64(total_used, factor) >> bits); in btrfs_statfs() 2095 buf->f_bavail = div_u64(total_free_data, factor); in btrfs_statfs() 2099 buf->f_bavail += div_u64(total_free_data, factor); in btrfs_statfs()
|
D | block-group.c | 1060 int factor; in btrfs_remove_block_group() local 1079 factor = btrfs_bg_type_to_factor(block_group->flags); in btrfs_remove_block_group() 1212 < block_group->length * factor); in btrfs_remove_block_group() 1219 block_group->space_info->disk_total -= block_group->length * factor; in btrfs_remove_block_group() 3615 int factor; in btrfs_update_block_group() local 3638 factor = btrfs_bg_type_to_factor(cache->flags); in btrfs_update_block_group() 3667 space_info->disk_used += num_bytes * factor; in btrfs_update_block_group() 3677 space_info->disk_used -= num_bytes * factor; in btrfs_update_block_group()
|
D | volumes.c | 3723 int factor; in chunk_drange_filter() local 3730 factor = calc_data_stripes(type, num_stripes); in chunk_drange_filter() 3739 stripe_length = div_u64(stripe_length, factor); in chunk_drange_filter() 5958 u32 factor = 0; in btrfs_map_discard() local 6010 factor = map->num_stripes / sub_stripes; in btrfs_map_discard() 6013 stripe_index = stripe_nr % factor; in btrfs_map_discard() 6014 stripe_nr /= factor; in btrfs_map_discard() 6017 remaining_stripes = stripe_cnt % factor; in btrfs_map_discard() 6018 stripes_per_dev = stripe_cnt / factor; in btrfs_map_discard() 6019 last_stripe = ((stripe_nr_end - 1) % factor) * sub_stripes; in btrfs_map_discard() [all …]
|
D | zoned.c | 2349 u64 factor; in btrfs_zoned_should_reclaim() local 2366 factor = div64_u64(used * 100, total); in btrfs_zoned_should_reclaim() 2367 return factor >= fs_info->bg_reclaim_threshold; in btrfs_zoned_should_reclaim()
|
/fs/ubifs/ |
D | budget.c | 623 int divisor, factor, f; in ubifs_reported_space() local 639 factor = UBIFS_BLOCK_SIZE; in ubifs_reported_space() 642 free *= factor; in ubifs_reported_space()
|
/fs/gfs2/ |
D | bmap.c | 391 sector_t factor = 1, block = 0; in metapath_to_block() local 396 block += mp->mp_list[hgt] * factor; in metapath_to_block() 397 factor *= sdp->sd_inptrs; in metapath_to_block() 471 u64 factor = 1; in gfs2_walk_metadata() local 481 max_len += mp->mp_list[hgt] * factor; in gfs2_walk_metadata() 483 factor *= sdp->sd_inptrs; in gfs2_walk_metadata() 494 len = ptrs * factor; in gfs2_walk_metadata() 496 ptrs = DIV_ROUND_UP_ULL(max_len, factor); in gfs2_walk_metadata() 504 len = ptrs * factor; in gfs2_walk_metadata() 523 factor *= sdp->sd_inptrs; in gfs2_walk_metadata() [all …]
|
/fs/jfs/ |
D | jfs_dmap.c | 4034 int complete, factor; in dbMapFileSizeToMapSize() local 4050 factor = in dbMapFileSizeToMapSize() 4052 complete = (u32) npages / factor; in dbMapFileSizeToMapSize() 4057 npages = (u32) npages % factor; in dbMapFileSizeToMapSize()
|
/fs/f2fs/ |
D | segment.c | 448 int factor = f2fs_rwsem_is_locked(&sbi->cp_rwsem) ? 3 : 2; in excess_dirty_threshold() local 455 SEGS_TO_BLKS(sbi, (factor * DEFAULT_DIRTY_THRESHOLD)); in excess_dirty_threshold()
|