Home
last modified time | relevance | path

Searched refs:goal (Results 1 – 25 of 158) sorted by relevance

1234567

/linux/fs/ocfs2/
H A Dreservations.c343 * ocfs2_find_resv_lhs() - find the window which contains goal
345 * @goal: which bit to search for
347 * If a window containing that goal is not found, we return the window
348 * which comes before goal. Returns NULL on empty rbtree or no window
349 * before goal.
352 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
367 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
370 /* Check if we overshot the reservation just before goal? */ in ocfs2_find_resv_lhs()
371 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
457 __ocfs2_resv_find_window(struct ocfs2_reservation_map * resmap,struct ocfs2_alloc_reservation * resv,unsigned int goal,unsigned int wanted) __ocfs2_resv_find_window() argument
680 unsigned int goal = 0; ocfs2_resv_find_window() local
[all...]
/linux/fs/ufs/
H A Dballoc.c339 u64 goal, unsigned count, int *err, in ufs_new_fragments() argument
350 (unsigned long long)goal, count); in ufs_new_fragments()
406 if (goal >= uspi->s_size) in ufs_new_fragments()
407 goal = 0; in ufs_new_fragments()
408 if (goal == 0) in ufs_new_fragments()
411 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments()
417 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments()
462 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments()
582 u64 goal, unsigned count, int *err) in ufs_alloc_fragments() argument
592 inode->i_ino, cgno, (unsigned long long)goal, count); in ufs_alloc_fragments()
[all …]
H A Dinode.c263 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local
283 goal = 0; in ufs_inode_getfrag()
285 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag()
287 if (goal) in ufs_inode_getfrag()
288 goal += uspi->s_fpb; in ufs_inode_getfrag()
291 goal, nfrags, err, locked_page); in ufs_inode_getfrag()
342 u64 tmp = 0, goal; in ufs_inode_getblock() local
368 goal = tmp + uspi->s_fpb; in ufs_inode_getblock()
370 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock()
371 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, in ufs_inode_getblock()
/linux/mm/damon/
H A Dreclaim.c198 struct damos_quota_goal *goal; in damon_reclaim_apply_parameters() local
217 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, in damon_reclaim_apply_parameters()
219 if (!goal) { in damon_reclaim_apply_parameters()
223 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
227 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); in damon_reclaim_apply_parameters()
228 if (!goal) { in damon_reclaim_apply_parameters()
232 goal->current_value = quota_autotune_feedback; in damon_reclaim_apply_parameters()
233 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
H A Dcore.c307 struct damos_quota_goal *goal; in damos_new_quota_goal() local
309 goal = kmalloc(sizeof(*goal), GFP_KERNEL); in damos_new_quota_goal()
310 if (!goal) in damos_new_quota_goal()
312 goal->metric = metric; in damos_new_quota_goal()
313 goal->target_value = target_value; in damos_new_quota_goal()
314 INIT_LIST_HEAD(&goal->list); in damos_new_quota_goal()
315 return goal; in damos_new_quota_goal()
1106 * next_input = max(last_input * ((goal - current) / goal
1115 const unsigned long goal = 10000; damon_feed_loop_next_input() local
1148 damos_set_quota_goal_current_value(struct damos_quota_goal * goal) damos_set_quota_goal_current_value() argument
1169 struct damos_quota_goal *goal; damos_quota_score() local
[all...]
H A Dsysfs-schemes.c825 * quota goal directory
849 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show()
853 damos_sysfs_quota_goal_metric_strs[goal->metric]); in target_metric_show()
859 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store()
865 goal->metric = m; in target_metric_store()
875 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show()
878 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show()
884 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store()
886 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store()
894 struct damos_sysfs_quota_goal *goal in current_value_show()
848 struct damos_sysfs_quota_goal *goal = container_of(kobj, target_metric_show() local
858 struct damos_sysfs_quota_goal *goal = container_of(kobj, target_metric_store() local
874 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct target_value_show() local
883 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct target_value_store() local
893 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct current_value_show() local
902 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct current_value_store() local
970 struct damos_sysfs_quota_goal **goals_arr, *goal; damos_sysfs_quota_goals_add_dirs() local
1926 struct damos_quota_goal *goal, *next; damos_sysfs_set_quota_score() local
[all...]
/linux/fs/affs/
H A Dbitmap.c115 affs_alloc_block(struct inode *inode, u32 goal) in affs_alloc_block() argument
128 pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); in affs_alloc_block()
136 if (!goal || goal > sbi->s_partition_size) { in affs_alloc_block()
137 if (goal) in affs_alloc_block()
138 affs_warning(sb, "affs_balloc", "invalid goal %d", goal); in affs_alloc_block()
141 goal = sbi->s_reserved; in affs_alloc_block()
144 blk = goal - sbi->s_reserved; in affs_alloc_block()
/linux/fs/udf/
H A Dballoc.c240 uint32_t goal, int *err) in udf_bitmap_new_block() argument
255 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block()
256 goal = 0; in udf_bitmap_new_block()
259 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block()
579 uint32_t goal, int *err) in udf_table_new_block() argument
601 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block()
602 goal = 0; in udf_table_new_block()
615 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block()
616 if (goal < eloc.logicalBlockNum + in udf_table_new_block()
620 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block()
[all …]
/linux/fs/hfs/
H A Dbitmap.c139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
153 if (goal) in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
H A Dextent.c394 u32 start, len, goal; in hfs_extend_file() local
399 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); in hfs_extend_file()
404 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); in hfs_extend_file()
408 start = hfs_vbm_search_free(sb, goal, &len); in hfs_extend_file()
/linux/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c1691 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async()
1692 || tinfo->curr.width != tinfo->goal.width in ahd_send_async()
1693 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async()
1694 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async()
2391 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period()
2394 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period()
2457 period = tinfo->goal.period; in ahd_linux_set_offset()
2458 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset()
2479 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt()
2481 unsigned int period = tinfo->goal.period; in ahd_linux_set_dt()
[all …]
H A Daic7xxx_osm.c1618 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async()
1619 || tinfo->curr.width != tinfo->goal.width in ahc_send_async()
1620 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async()
1621 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async()
2348 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period()
2350 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period()
2403 period = tinfo->goal.period; in ahc_linux_set_offset()
2404 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset()
2422 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt()
2424 unsigned int period = tinfo->goal.period; in ahc_linux_set_dt()
[all …]
H A Daic7xxx_core.c1862 tinfo->goal.transport_version = 2; in ahc_handle_scsiint()
1863 tinfo->goal.ppr_options = 0; in ahc_handle_scsiint()
2148 memset(&tstate->transinfo[i].goal, 0, in ahc_alloc_tstate()
2149 sizeof(tstate->transinfo[i].goal)); in ahc_alloc_tstate()
2225 transinfo = &tinfo->goal; in ahc_devlimited_syncrate()
2386 *offset = min(*offset, (u_int)tinfo->goal.offset); in ahc_validate_offset()
2414 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width()
2444 if (tinfo->curr.period != tinfo->goal.period in ahc_update_neg_request()
2445 || tinfo->curr.width != tinfo->goal.width in ahc_update_neg_request()
2446 || tinfo->curr.offset != tinfo->goal.offset in ahc_update_neg_request()
[all …]
/linux/include/linux/
H A Ddamon.h130 * enum damos_quota_goal_metric - Represents the metric to be used as the goal
134 * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics.
145 * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal.
146 * @metric: Metric to be used for representing the goal.
152 * Data structure for getting the current score of the quota tuning goal. The
680 #define damos_for_each_quota_goal(goal, quota) \
681 list_for_each_entry(goal, &quota->goals, list) argument
683 #define damos_for_each_quota_goal_safe(goal, next, quota) \
684 list_for_each_entry_safe(goal, next, &(quota)->goals, list)
723 void damos_destroy_quota_goal(struct damos_quota_goal *goal);
678 damos_for_each_quota_goal(goal,quota) global() argument
[all...]
/linux/net/netfilter/ipvs/
H A Dip_vs_lblc.c298 int goal; in ip_vs_lblc_check_expire() local
315 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
316 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
317 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
329 goal--; in ip_vs_lblc_check_expire()
332 if (goal <= 0) in ip_vs_lblc_check_expire()
H A Dip_vs_lblcr.c462 int goal; in ip_vs_lblcr_check_expire() local
479 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire()
480 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire()
481 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire()
493 goal--; in ip_vs_lblcr_check_expire()
496 if (goal <= 0) in ip_vs_lblcr_check_expire()
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1352 struct sym_trans *goal) argument
1355 goal->width = 0;
1358 goal->iu = 0;
1359 goal->dt = 0;
1360 goal->qas = 0;
1361 goal->offset = 0;
1367 goal->dt = 1;
1369 if (goal->offset == 0)
1370 goal->dt = 0;
1372 goal->dt = 0;
[all …]
/linux/fs/xfs/
H A Dxfs_icache.c49 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
51 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
1597 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument
1601 switch (goal) { in xfs_icwalk_igrab()
1617 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument
1624 switch (goal) { in xfs_icwalk_process_inode()
1642 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument
1655 if (goal == XFS_ICWALK_RECLAIM) in xfs_icwalk_ag()
1669 XFS_LOOKUP_BATCH, goal); in xfs_icwalk_ag()
1683 if (done || !xfs_icwalk_igrab(goal, ip, icw)) in xfs_icwalk_ag()
[all …]
/linux/fs/ext2/
H A Dballoc.c290 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument
301 if (goal < rsv->rsv_start) in search_reserve_window()
303 else if (goal > rsv->rsv_end) in search_reserve_window()
314 if (rsv->rsv_start > goal) { in search_reserve_window()
1201 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument
1239 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks()
1263 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1264 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1265 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks()
1266 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks()
[all …]
/linux/fs/gfs2/
H A Drgrp.c235 u32 goal, u8 state) in gfs2_bitfit() argument
237 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1); in gfs2_bitfit()
238 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5); in gfs2_bitfit()
1152 u32 i, goal, count = 0; in count_unlinked() local
1155 goal = 0; in count_unlinked()
1158 while (goal < bi->bi_blocks) { in count_unlinked()
1159 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal, in count_unlinked()
1161 if (goal == BFITNOENT) in count_unlinked()
1164 goal++; in count_unlinked()
1566 u64 goal; in rg_mblk_search() local
[all …]
/linux/fs/hfsplus/
H A Dextents.c445 u32 start, len, goal; in hfsplus_file_extend() local
459 goal = hfsplus_ext_lastblock(hip->first_extents); in hfsplus_file_extend()
464 goal = hfsplus_ext_lastblock(hip->cached_extents); in hfsplus_file_extend()
468 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend()
470 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend()
471 if (start >= goal) { in hfsplus_file_extend()
/linux/fs/ext4/
H A Dmballoc-test.c415 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
417 KUNIT_ASSERT_EQ_MSG(test, ar.goal, found, in test_new_blocks_simple()
419 ar.goal, found); in test_new_blocks_simple()
422 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
424 KUNIT_ASSERT_EQ_MSG(test, ar.goal + EXT4_C2B(sbi, 1), found, in test_new_blocks_simple()
426 ar.goal + 1, found); in test_new_blocks_simple()
430 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
440 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
450 ar.goal = ext4_group_first_block_no(sb, goal_group); in test_new_blocks_simple()
H A Dindirect.c254 ext4_fsblk_t goal; in ext4_find_goal() local
260 goal = ext4_find_near(inode, partial); in ext4_find_goal()
261 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS; in ext4_find_goal()
262 return goal; in ext4_find_goal()
342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
343 ar->inode, ar->goal, in ext4_alloc_branch()
620 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
/linux/mm/
H A Dsparse.c336 unsigned long goal, limit; in sparse_early_usemaps_alloc_pgdat_section() local
348 goal = pgdat_to_phys(pgdat) & (PAGE_SECTION_MASK << PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
349 limit = goal + (1UL << PA_SECTION_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
350 nid = early_pfn_to_nid(goal >> PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section()
352 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
/linux/Documentation/userspace-api/
H A Dsysfs-platform_profile.rst19 NOT a goal of this API to allow monitoring the resulting performance
26 laptop, etc. It is explicitly NOT a goal of this API to let userspace know

1234567