/linux-6.14.4/tools/testing/selftests/damon/ |
D | damos_quota_goal.py | 14 goal = _damon_sysfs.DamosQuotaGoal( 23 goals=[goal], reset_interval_ms=100), 39 goal.current_value = score_values_to_test.pop(0) 40 expect_increase = goal.current_value < goal.target_value 51 last_effective_bytes = goal.effective_bytes 61 goal.current_value, last_effective_bytes, goal.effective_bytes, 62 goal.effective_bytes / last_effective_bytes 65 if last_effective_bytes == goal.effective_bytes: 69 print('efective bytes not changed: %d' % goal.effective_bytes) 72 increased = last_effective_bytes < goal.effective_bytes [all …]
|
D | _damon_sysfs.py | 131 for idx, goal in enumerate(self.goals): 132 goal.idx = idx 133 goal.quota = self 158 for goal in self.goals: 159 err = goal.stage() 475 for goal in scheme.quota.goals: 481 goal.effective_bytes = int(content) 506 for goal in scheme.quota.goals: 507 err = goal.stage()
|
/linux-6.14.4/fs/ocfs2/ |
D | reservations.c | 343 * 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 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument [all …]
|
D | ocfs2_ioctl.h | 195 __u64 me_goal; /* Physical offset of the goal, 197 __u64 me_threshold; /* Maximum distance from goal or threshold 211 as the goal place
|
/linux-6.14.4/fs/ext2/ |
D | balloc.c | 256 * @grp_goal: given goal block relative to the allocation block group 260 * Test if the given goal block (group relative) is within the file's 263 * If the reservation window is outside the goal allocation group, return 0; 264 * grp_goal (given goal block) could be -1, which means no specific 265 * goal block. In this case, always return 1. 266 * If the goal block is within the reservation window, return 1; 290 * @goal: target allocation block 292 * Find the reserved window which includes the goal, or the previous one 293 * if the goal is not in any window. 294 * Returns NULL if there are no windows or if all windows start after the goal. [all …]
|
/linux-6.14.4/fs/ufs/ |
D | balloc.c | 334 u64 goal, unsigned count, int *err, in ufs_new_fragments() argument 343 UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n", in ufs_new_fragments() 345 (unsigned long long)goal, count); in ufs_new_fragments() 401 if (goal >= uspi->s_size) in ufs_new_fragments() 402 goal = 0; in ufs_new_fragments() 403 if (goal == 0) in ufs_new_fragments() 406 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments() 412 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 457 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments() 577 u64 goal, unsigned count, int *err) in ufs_alloc_fragments() argument [all …]
|
D | inode.c | 24 * Goal-directed block allocation by Stephen Tweedie ([email protected]), 1993 262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local 277 goal = 0; in ufs_inode_getfrag() 279 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag() 281 if (goal) in ufs_inode_getfrag() 282 goal += uspi->s_fpb; in ufs_inode_getfrag() 285 goal, nfrags, err, locked_folio); in ufs_inode_getfrag() 320 u64 tmp = 0, goal; in ufs_inode_getblock() local 346 goal = tmp + uspi->s_fpb; in ufs_inode_getblock() 348 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock() [all …]
|
/linux-6.14.4/fs/affs/ |
D | bitmap.c | 115 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-6.14.4/mm/damon/ |
D | reclaim.c | 189 struct damos_quota_goal *goal; in damon_reclaim_apply_parameters() local 208 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, in damon_reclaim_apply_parameters() 210 if (!goal) in damon_reclaim_apply_parameters() 212 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters() 216 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); in damon_reclaim_apply_parameters() 217 if (!goal) in damon_reclaim_apply_parameters() 219 goal->current_value = quota_autotune_feedback; in damon_reclaim_apply_parameters() 220 damos_add_quota_goal(&scheme->quota, goal); in damon_reclaim_apply_parameters()
|
D | sysfs-schemes.c | 838 * quota goal directory 862 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_show() local 866 damos_sysfs_quota_goal_metric_strs[goal->metric]); in target_metric_show() 872 struct damos_sysfs_quota_goal *goal = container_of(kobj, in target_metric_store() local 878 goal->metric = m; in target_metric_store() 888 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_show() local 891 return sysfs_emit(buf, "%lu\n", goal->target_value); in target_value_show() 897 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in target_value_store() local 899 int err = kstrtoul(buf, 0, &goal->target_value); in target_value_store() 907 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct in current_value_show() local [all …]
|
D | core.c | 309 struct damos_quota_goal *goal; in damos_new_quota_goal() local 311 goal = kmalloc(sizeof(*goal), GFP_KERNEL); in damos_new_quota_goal() 312 if (!goal) in damos_new_quota_goal() 314 goal->metric = metric; in damos_new_quota_goal() 315 goal->target_value = target_value; in damos_new_quota_goal() 316 INIT_LIST_HEAD(&goal->list); in damos_new_quota_goal() 317 return goal; in damos_new_quota_goal() 683 struct damos_quota_goal *goal; in damos_nth_quota_goal() local 686 damos_for_each_quota_goal(goal, q) { in damos_nth_quota_goal() 688 return goal; in damos_nth_quota_goal() [all …]
|
/linux-6.14.4/fs/udf/ |
D | balloc.c | 224 uint32_t goal, int *err) in udf_bitmap_new_block() argument 239 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block() 240 goal = 0; in udf_bitmap_new_block() 243 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block() 559 uint32_t goal, int *err) in udf_table_new_block() argument 582 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block() 583 goal = 0; in udf_table_new_block() 585 /* We search for the closest matching block to goal. If we find in udf_table_new_block() 598 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 599 if (goal < eloc.logicalBlockNum + in udf_table_new_block() [all …]
|
/linux-6.14.4/fs/ext4/ |
D | mballoc-test.c | 414 /* get block at goal */ in test_new_blocks_simple() 415 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() 418 "failed to alloc block at goal, expected %llu found %llu", in test_new_blocks_simple() 419 ar.goal, found); in test_new_blocks_simple() 421 /* get block after goal in goal group */ 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() 425 "failed to alloc block after goal in goal group, expected %llu found %llu", in test_new_blocks_simple() 426 ar.goal + 1, found); in test_new_blocks_simple() [all …]
|
/linux-6.14.4/tools/testing/selftests/bpf/prog_tests/ |
D | test_ima.c | 100 * - Goal: obtain a sample with the bpf_ima_inode_hash() helper in test_test_ima() 114 * - Goal: obtain samples with the bpf_ima_file_hash() helper in test_test_ima() 131 * - Goal: confirm that bpf_ima_inode_hash() returns a non-fresh digest in test_test_ima() 170 * - Goal: verify that bpf_ima_file_hash() returns a fresh digest in test_test_ima() 201 * - Goal: obtain a sample from the kernel_read_file hook in test_test_ima() 219 * - Goal: ensure that the kernel_read_file hook denies an operation in test_test_ima()
|
/linux-6.14.4/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fence.c | 114 * FENCE_GOAL irq and sets the fence goal seqno to that of the next fence 116 * the subsystem makes sure the fence goal seqno is updated. 118 * The fence goal seqno irq is on as long as there are unsignaled fence 384 * vmw_fence_goal_new_locked - Figure out a new device fence goal 392 * we might need to update the fence goal. It checks to see whether 393 * the current fence goal has already passed, and, in that case, 395 * action attached, and sets the seqno of that fence as a new fence goal. 397 * returns true if the device goal seqno was updated. False otherwise. 427 * vmw_fence_goal_check_locked - Replace the device fence goal seqno if 431 * considered as a device fence goal. [all …]
|
/linux-6.14.4/drivers/scsi/aic7xxx/ |
D | aic79xx_osm.c | 1691 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 …]
|
/linux-6.14.4/fs/hfs/ |
D | bitmap.c | 139 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()
|
/linux-6.14.4/fs/xfs/ |
D | xfs_icache.c | 42 * The goal for walking incore inodes. These can correspond with incore inode 52 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 54 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 1693 * the goal. 1697 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument 1701 switch (goal) { in xfs_icwalk_igrab() 1717 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument 1724 switch (goal) { in xfs_icwalk_process_inode() 1736 * For a given per-AG structure @pag and a goal, grab qualifying inodes and 1742 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument [all …]
|
/linux-6.14.4/arch/riscv/kernel/ |
D | machine_kexec.c | 25 * provided us with an image to be loaded. Its goal is to validate 101 * below. Its goal is to prepare the rest of the system (the other 121 * and its goal is to shutdown non-crashing cpus and save registers.
|
/linux-6.14.4/include/linux/ |
D | damon.h | 134 * enum damos_quota_goal_metric - Represents the metric to be used as the goal 138 * @NR_DAMOS_QUOTA_GOAL_METRICS: Number of DAMOS quota goal metrics. 149 * struct damos_quota_goal - DAMOS scheme quota auto-tuning goal. 150 * @metric: Metric to be used for representing the goal. 156 * Data structure for getting the current score of the quota tuning goal. The 790 #define damos_for_each_quota_goal(goal, quota) \ argument 791 list_for_each_entry(goal, "a->goals, list) 793 #define damos_for_each_quota_goal_safe(goal, next, quota) \ argument 794 list_for_each_entry_safe(goal, next, &(quota)->goals, list) 833 void damos_destroy_quota_goal(struct damos_quota_goal *goal);
|
/linux-6.14.4/Documentation/process/ |
D | code-of-conduct-interpretation.rst | 56 In the end, "be kind to each other" is really what the end goal is for 58 primary goal for all of us should be to work toward amicable resolutions 62 Our goal of creating a robust and technically advanced operating system 193 The goal is to reach a resolution which is agreeable to all parties. If
|
/linux-6.14.4/net/netfilter/ipvs/ |
D | ip_vs_lblc.c | 298 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()
|
/linux-6.14.4/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 1352 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-6.14.4/fs/hfsplus/ |
D | extents.c | 446 u32 start, len, goal; in hfsplus_file_extend() local 460 goal = hfsplus_ext_lastblock(hip->first_extents); in hfsplus_file_extend() 465 goal = hfsplus_ext_lastblock(hip->cached_extents); in hfsplus_file_extend() 469 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend() 471 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend() 472 if (start >= goal) { in hfsplus_file_extend()
|
/linux-6.14.4/fs/gfs2/ |
D | rgrp.c | 218 * @goal: start search at this block's bit-pair (within @buffer) 221 * Scope of @goal and returned block number is only within this bitmap buffer, 235 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() [all …]
|