/linux-master/mm/damon/ |
H A D | reclaim.c | 198 struct damos_quota_goal *goal; local 217 goal = damos_new_quota_goal(DAMOS_QUOTA_SOME_MEM_PSI_US, 219 if (!goal) { 223 damos_add_quota_goal(&scheme->quota, goal); 227 goal = damos_new_quota_goal(DAMOS_QUOTA_USER_INPUT, 10000); 228 if (!goal) { 232 goal->current_value = quota_autotune_feedback; 233 damos_add_quota_goal(&scheme->quota, goal);
|
H A D | core.c | 307 struct damos_quota_goal *goal; local 309 goal = kmalloc(sizeof(*goal), GFP_KERNEL); 310 if (!goal) 312 goal->metric = metric; 313 goal->target_value = target_value; 314 INIT_LIST_HEAD(&goal->list); 315 return goal; 1105 * next_input = max(last_input * ((goal - current) / goal 1115 const unsigned long goal = 10000; local 1148 damos_set_quota_goal_current_value(struct damos_quota_goal *goal) argument 1169 struct damos_quota_goal *goal; local [all...] |
H A D | sysfs-schemes.c | 824 * quota goal directory 848 struct damos_sysfs_quota_goal *goal = container_of(kobj, local 852 damos_sysfs_quota_goal_metric_strs[goal->metric]); 858 struct damos_sysfs_quota_goal *goal = container_of(kobj, local 864 goal->metric = m; 874 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct local 877 return sysfs_emit(buf, "%lu\n", goal->target_value); 883 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct local 885 int err = kstrtoul(buf, 0, &goal->target_value); 893 struct damos_sysfs_quota_goal *goal local 902 struct damos_sysfs_quota_goal *goal = container_of(kobj, struct local 970 struct damos_sysfs_quota_goal **goals_arr, *goal; local 1926 struct damos_quota_goal *goal, *next; local [all...] |
/linux-master/fs/ocfs2/ |
H A 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) argument 367 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) 370 /* Check if we overshot the reservation just before goal? */ 371 if (resv->r_start > goal) { 455 __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int goal, unsigned int wanted) argument 680 unsigned int goal = 0; local [all...] |
/linux-master/fs/hfs/ |
H A D | bitmap.c | 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) argument 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); 153 if (goal) 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits);
|
H A D | extent.c | 394 u32 start, len, goal; local 399 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); 404 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); 408 start = hfs_vbm_search_free(sb, goal, &len);
|
/linux-master/fs/affs/ |
H A D | bitmap.c | 115 affs_alloc_block(struct inode *inode, u32 goal) argument 128 pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); 136 if (!goal || goal > sbi->s_partition_size) { 137 if (goal) 138 affs_warning(sb, "affs_balloc", "invalid goal %d", goal); 141 goal = sbi->s_reserved; 144 blk = goal [all...] |
/linux-master/fs/ufs/ |
H A D | balloc.c | 339 u64 goal, unsigned count, int *err, 348 UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n", 350 (unsigned long long)goal, count); 406 if (goal >= uspi->s_size) 407 goal = 0; 408 if (goal == 0) 411 cgno = ufs_dtog(uspi, goal); 417 result = ufs_alloc_fragments (inode, cgno, goal, count, err); 462 result = ufs_alloc_fragments (inode, cgno, goal, request, err); 582 u64 goal, unsigne 338 ufs_new_fragments(struct inode *inode, void *p, u64 fragment, u64 goal, unsigned count, int *err, struct page *locked_page) argument 581 ufs_alloc_fragments(struct inode *inode, unsigned cgno, u64 goal, unsigned count, int *err) argument 694 ufs_alloccg_block(struct inode *inode, struct ufs_cg_private_info *ucpi, u64 goal, int *err) argument 789 ufs_bitmap_search(struct super_block *sb, struct ufs_cg_private_info *ucpi, u64 goal, unsigned count) argument [all...] |
H A D | inode.c | 263 u64 tmp, goal, lastfrag; local 283 goal = 0; 285 goal = ufs_data_ptr_to_cpu(sb, 287 if (goal) 288 goal += uspi->s_fpb; 291 goal, nfrags, err, locked_page); 314 goal = 0; 342 u64 tmp = 0, goal; local 368 goal = tmp + uspi->s_fpb; 370 goal [all...] |
/linux-master/include/linux/ |
H A D | damon.h | 130 * 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 678 #define damos_for_each_quota_goal(goal, quota) \ 679 list_for_each_entry(goal, "a->goals, list) 681 #define damos_for_each_quota_goal_safe(goal, next, quota) \ 682 list_for_each_entry_safe(goal, next, &(quota)->goals, list) 721 void damos_destroy_quota_goal(struct damos_quota_goal *goal); [all...] |
/linux-master/fs/udf/ |
H A D | balloc.c | 240 uint32_t goal, int *err) 255 if (goal >= sbi->s_partmaps[partition].s_partition_len) 256 goal = 0; 259 block = goal + (sizeof(struct spaceBitmapDesc) << 3); 579 uint32_t goal, int *err) 601 if (goal >= sbi->s_partmaps[partition].s_partition_len) 602 goal = 0; 604 /* We search for the closest matching block to goal. If we find 615 if (goal >= eloc.logicalBlockNum) { 616 if (goal < elo 238 udf_bitmap_new_block(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t goal, int *err) argument 577 udf_table_new_block(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t goal, int *err) argument 717 udf_new_block(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t goal, int *err) argument [all...] |
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_lblc.c | 299 int goal; local 316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; 317 if (goal > tbl->max_size/2) 318 goal = tbl->max_size/2; 330 goal--; 333 if (goal <= 0)
|
H A D | ip_vs_lblcr.c | 463 int goal; local 480 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; 481 if (goal > tbl->max_size/2) 482 goal = tbl->max_size/2; 494 goal--; 497 if (goal <= 0)
|
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aic79xx_osm.c | 1691 if (tinfo->curr.period != tinfo->goal.period 1692 || tinfo->curr.width != tinfo->goal.width 1693 || tinfo->curr.offset != tinfo->goal.offset 1694 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) 2391 unsigned int ppr_options = tinfo->goal.ppr_options; 2394 unsigned long offset = tinfo->goal.offset; 2457 period = tinfo->goal.period; 2458 ppr_options = tinfo->goal.ppr_options; 2479 unsigned int ppr_options = tinfo->goal.ppr_options 2481 unsigned int period = tinfo->goal [all...] |
H A D | aic7xxx_osm.c | 1618 if (tinfo->curr.period != tinfo->goal.period 1619 || tinfo->curr.width != tinfo->goal.width 1620 || tinfo->curr.offset != tinfo->goal.offset 1621 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) 2348 unsigned int ppr_options = tinfo->goal.ppr_options; 2350 unsigned long offset = tinfo->goal.offset; 2403 period = tinfo->goal.period; 2404 ppr_options = tinfo->goal.ppr_options; 2422 unsigned int ppr_options = tinfo->goal.ppr_options 2424 unsigned int period = tinfo->goal [all...] |
/linux-master/net/rds/ |
H A D | ib_mr.h | 141 unsigned long *unpinned, unsigned int goal);
|
/linux-master/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.c | 1352 struct sym_trans *goal) 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 1351 sym_check_goals(struct sym_hcb *np, struct scsi_target *starget, struct sym_trans *goal) argument 1410 struct sym_trans *goal = &tp->tgoal; local [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_icache.c | 39 * The goal for walking incore inodes. These can correspond with incore inode 49 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 51 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw); 1595 * the goal. 1599 enum xfs_icwalk_goal goal, 1603 switch (goal) { 1619 enum xfs_icwalk_goal goal, 1626 switch (goal) { 1638 * For a given per-AG structure @pag and a goal, grab qualifying inodes and 1644 enum xfs_icwalk_goal goal, 1598 xfs_icwalk_igrab( enum xfs_icwalk_goal goal, struct xfs_inode *ip, struct xfs_icwalk *icw) argument 1618 xfs_icwalk_process_inode( enum xfs_icwalk_goal goal, struct xfs_inode *ip, struct xfs_perag *pag, struct xfs_icwalk *icw) argument 1642 xfs_icwalk_ag( struct xfs_perag *pag, enum xfs_icwalk_goal goal, struct xfs_icwalk *icw) argument 1751 xfs_icwalk( struct xfs_mount *mp, enum xfs_icwalk_goal goal, struct xfs_icwalk *icw) argument [all...] |
/linux-master/fs/ext2/ |
H A D | balloc.c | 249 * @grp_goal: given goal block relative to the allocation block group 253 * Test if the given goal block (group relative) is within the file's 256 * If the reservation window is outside the goal allocation group, return 0; 257 * grp_goal (given goal block) could be -1, which means no specific 258 * goal block. In this case, always return 1. 259 * If the goal block is within the reservation window, return 1; 283 * @goal: target allocation block 285 * Find the reserved window which includes the goal, or the previous one 286 * if the goal is not in any window. 287 * Returns NULL if there are no windows or if all windows start after the goal 290 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) argument 1201 ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, unsigned long *count, int *errp, unsigned int flags) argument [all...] |
/linux-master/fs/hfsplus/ |
H A D | extents.c | 445 u32 start, len, goal; local 459 goal = hfsplus_ext_lastblock(hip->first_extents); 464 goal = hfsplus_ext_lastblock(hip->cached_extents); 468 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); 470 start = hfsplus_block_allocate(sb, goal, 0, &len); 471 if (start >= goal) {
|
/linux-master/fs/ext4/ |
H A D | mballoc-test.c | 390 /* get block at goal */ 391 ar.goal = ext4_group_first_block_no(sb, goal_group); 393 KUNIT_ASSERT_EQ_MSG(test, ar.goal, found, 394 "failed to alloc block at goal, expected %llu found %llu", 395 ar.goal, found); 397 /* get block after goal in goal group */ 398 ar.goal = ext4_group_first_block_no(sb, goal_group); 400 KUNIT_ASSERT_EQ_MSG(test, ar.goal + EXT4_C2B(sbi, 1), found, 401 "failed to alloc block after goal i [all...] |
H A D | indirect.c | 254 ext4_fsblk_t goal; local 257 * XXX need to get goal block from mballoc's data structures 260 goal = ext4_find_near(inode, partial); 261 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS; 262 return goal; 342 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, 343 ar->inode, ar->goal, 620 ar.goal = ext4_find_goal(inode, map->m_lblk, partial);
|
H A D | ialloc.c | 926 __u32 goal, uid_t *owner, __u32 i_flags, 1004 if (!goal) 1005 goal = sbi->s_inode_goal; 1007 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { 1008 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); 1009 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); 923 __ext4_new_inode(struct mnt_idmap *idmap, handle_t *handle, struct inode *dir, umode_t mode, const struct qstr *qstr, __u32 goal, uid_t *owner, __u32 i_flags, int handle_type, unsigned int line_no, int nblocks) argument
|
/linux-master/fs/gfs2/ |
H A 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) 237 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1); 238 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5); 1152 u32 i, goal, count = 0; local 1155 goal = 0; 1158 while (goal < bi->bi_blocks) { 1159 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal, 234 gfs2_bitfit(const u8 *buf, const unsigned int len, u32 goal, u8 state) argument 1566 u64 goal; local 2392 u64 goal; local [all...] |
/linux-master/mm/ |
H A D | sparse.c | 336 unsigned long goal, limit; local 348 goal = pgdat_to_phys(pgdat) & (PAGE_SECTION_MASK << PAGE_SHIFT); 349 limit = goal + (1UL << PA_SECTION_SHIFT); 350 nid = early_pfn_to_nid(goal >> PAGE_SHIFT); 352 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid);
|