/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/drivers/tty/ |
H A D | tty_buffer.c | 308 size_t goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); local 309 size_t space = __tty_buffer_request_room(port, goal, need_flags);
|
/linux-master/fs/ext4/ |
H A D | xattr.c | 1477 * Let the next inode be the goal, so we try and allocate the EA inode 2134 ext4_fsblk_t goal, block; local 2139 goal = ext4_group_first_block_no(sb, 2141 block = ext4_new_meta_blocks(handle, inode, goal, 0,
|
H A D | mballoc.c | 45 * near to the goal(block) value specified. 174 * fragment size > goal length. So before falling to the slower 175 * CR_GOAL_LEN_SLOW, in CR_BEST_AVAIL_LEN we proactively trim goal length and 203 * the group specified as the goal value in allocation context via 970 * a larger normalized goal len request which can be trimmed to 971 * a smaller goal len such that it can still satisfy original 984 * order we have and proactively trim the goal request length to that order to 1008 * goal length. 1024 * up the goal len to num_stripe_clusters 1035 * Scale down goal le 5787 ext4_fsblk_t goal; local 6067 ext4_fsblk_t goal, block; local [all...] |
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 | extents.c | 264 ext4_fsblk_t goal, newblock; local 266 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); 267 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, 1316 ext4_fsblk_t newblock, goal = 0; local 1323 goal = ext4_idx_pblock(EXT_FIRST_INDEX(ext_inode_hdr(inode))); 1324 if (goal > le32_to_cpu(es->s_first_data_block)) { 1326 goal--; 1328 goal = ext4_inode_to_goal_block(inode); 1329 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, 4292 ar.goal [all...] |
H A D | ext4.h | 147 * suitable group that satisfies goal request. No disk IO 153 * Same as CR_GOAL_LEN_FAST but is allowed to reduce the goal 161 * allocate goal length but might trim the request if nothing 186 /* prefer goal again. length */ 202 /* allocate goal blocks or none */ 204 /* goal is meaningful */ 235 ext4_fsblk_t goal; member in struct:ext4_allocation_request 1614 atomic_t s_bal_goals; /* goal hits */ 1615 atomic_t s_bal_len_goals; /* len goal hits */ 2716 ext4_fsblk_t goal, [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);
|
/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);
|
H A D | percpu.c | 3009 const unsigned long goal = __pa(MAX_DMA_ADDRESS); local 3018 ptr = memblock_alloc_from(size, align, goal); 3024 ptr = memblock_alloc_try_nid(size, align, goal, 3033 return memblock_alloc_from(size, align, goal);
|
/linux-master/mm/damon/ |
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...] |
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...] |
/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 | inode.c | 718 udf_pblk_t goal = 0, pgoal = iinfo->i_location.logicalBlockNum; local 867 goal = iinfo->i_next_alloc_goal; 869 if (!goal) { 870 if (!(goal = pgoal)) /* XXX: what was intended here? */ 871 goal = iinfo->i_location.logicalBlockNum + 1; 876 goal, &ret);
|
/linux-master/fs/ocfs2/ |
H A D | dlmglue.c | 1407 unsigned long goal) 1415 mw->mw_goal = goal; 1420 * if the mask still hadn't reached its goal */ 1404 lockres_add_mask_waiter(struct ocfs2_lock_res *lockres, struct ocfs2_mask_waiter *mw, unsigned long mask, unsigned long goal) argument
|
/linux-master/fs/ext2/ |
H A D | xattr.c | 743 ext2_fsblk_t goal = ext2_group_first_block_no(sb, local 746 ext2_fsblk_t block = ext2_new_blocks(inode, goal,
|
H A D | inode.c | 327 * Returns preferred place for a block (the goal). 390 * @goal: Preferred place for allocation. 400 ext2_fsblk_t goal, int indirect_blks, int blks, 422 current_block = ext2_new_blocks(inode, goal, &count, err, 0); 457 * @goal: preferred place for allocation 480 int indirect_blks, int *blks, ext2_fsblk_t goal, 491 num = ext2_alloc_blocks(inode, goal, indirect_blks, 587 * in i_block_alloc_info, to assist find the proper goal block for next 633 ext2_fsblk_t goal; local 721 goal 399 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) argument 479 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) argument [all...] |
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/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 17105 int goal; local 17122 goal = BOUNDARY_MULTI_CACHELINE; 17125 goal = BOUNDARY_SINGLE_CACHELINE; 17127 goal = 0; 17132 val = goal ? 0 : DMA_RWCTRL_DIS_CACHE_ALIGNMENT; 17136 if (!goal) 17156 if (goal == BOUNDARY_SINGLE_CACHELINE) { 17180 if (goal == BOUNDARY_SINGLE_CACHELINE) { 17195 if (goal == BOUNDARY_SINGLE_CACHELINE) { 17202 if (goal [all...] |
/linux-master/net/sctp/ |
H A D | protocol.c | 1486 unsigned long goal; local 1539 * Though not identical. Start by getting a goal size 1542 goal = nr_pages >> (22 - PAGE_SHIFT); 1544 goal = nr_pages >> (24 - PAGE_SHIFT); 1546 /* Then compute the page order for said goal */ 1547 order = get_order(goal);
|
/linux-master/net/ipv4/ |
H A D | tcp_input.c | 2988 * Main goal of this function is to calculate new estimate for left_out, 5490 int goal; local 5495 goal = sk->sk_rcvbuf >> 3; 5507 goal -= skb->truesize; 5510 if (!prev || goal <= 0) { 5514 goal = sk->sk_rcvbuf >> 3;
|
/linux-master/fs/affs/ |
H A D | affs.h | 161 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
|
/linux-master/include/trace/events/ |
H A D | ext4.h | 830 __field( __u64, goal ) 841 __entry->goal = ar->goal; 849 TP_printk("dev %d,%d ino %lu flags %s len %u lblk %u goal %llu " 853 __entry->len, __entry->logical, __entry->goal, 871 __field( __u64, goal ) 883 __entry->goal = ar->goal; 892 "goal %llu lleft %u lright %u pleft %llu pright %llu", 896 __entry->goal, __entr [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
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...] |