Home
last modified time | relevance | path

Searched refs:goal (Results 1 - 25 of 105) sorted by relevance

12345

/kernel/linux/linux-5.10/fs/ocfs2/
H A Dreservations.c347 * ocfs2_find_resv_lhs() - find the window which contains goal
349 * @goal: which bit to search for
351 * If a window containing that goal is not found, we return the window
352 * which comes before goal. Returns NULL on empty rbtree or no window
353 * before goal.
356 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
371 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
374 /* Check if we overshot the reservation just before goal? */ in ocfs2_find_resv_lhs()
375 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
459 __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
684 unsigned int goal = 0; ocfs2_resv_find_window() local
[all...]
/kernel/linux/linux-6.6/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()
455 __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...]
/kernel/linux/linux-5.10/fs/ufs/
H A Dballoc.c345 u64 goal, unsigned count, int *err, in ufs_new_fragments()
354 UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n", in ufs_new_fragments()
356 (unsigned long long)goal, count); in ufs_new_fragments()
412 if (goal >= uspi->s_size) in ufs_new_fragments()
413 goal = 0; in ufs_new_fragments()
414 if (goal == 0) in ufs_new_fragments()
417 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments()
423 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments()
468 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments()
588 u64 goal, unsigne in ufs_alloc_fragments()
344 ufs_new_fragments(struct inode *inode, void *p, u64 fragment, u64 goal, unsigned count, int *err, struct page *locked_page) ufs_new_fragments() argument
587 ufs_alloc_fragments(struct inode *inode, unsigned cgno, u64 goal, unsigned count, int *err) ufs_alloc_fragments() argument
700 ufs_alloccg_block(struct inode *inode, struct ufs_cg_private_info *ucpi, u64 goal, int *err) ufs_alloccg_block() argument
795 ufs_bitmap_search(struct super_block *sb, struct ufs_cg_private_info *ucpi, u64 goal, unsigned count) ufs_bitmap_search() argument
[all...]
/kernel/linux/linux-6.6/fs/ufs/
H A Dballoc.c341 u64 goal, unsigned count, int *err, in ufs_new_fragments()
350 UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n", in ufs_new_fragments()
352 (unsigned long long)goal, count); in ufs_new_fragments()
408 if (goal >= uspi->s_size) in ufs_new_fragments()
409 goal = 0; in ufs_new_fragments()
410 if (goal == 0) in ufs_new_fragments()
413 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments()
419 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments()
464 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments()
584 u64 goal, unsigne in ufs_alloc_fragments()
340 ufs_new_fragments(struct inode *inode, void *p, u64 fragment, u64 goal, unsigned count, int *err, struct page *locked_page) ufs_new_fragments() argument
583 ufs_alloc_fragments(struct inode *inode, unsigned cgno, u64 goal, unsigned count, int *err) ufs_alloc_fragments() argument
696 ufs_alloccg_block(struct inode *inode, struct ufs_cg_private_info *ucpi, u64 goal, int *err) ufs_alloccg_block() argument
791 ufs_bitmap_search(struct super_block *sb, struct ufs_cg_private_info *ucpi, u64 goal, unsigned count) ufs_bitmap_search() argument
[all...]
/kernel/linux/linux-5.10/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 in affs_alloc_block()
[all...]
/kernel/linux/linux-6.6/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 in affs_alloc_block()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/fs/udf/
H A Dballoc.c244 uint32_t goal, int *err) in udf_bitmap_new_block()
259 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block()
260 goal = 0; in udf_bitmap_new_block()
263 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block()
583 uint32_t goal, int *err) in udf_table_new_block()
605 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block()
606 goal = 0; in udf_table_new_block()
608 /* We search for the closest matching block to goal. If we find in udf_table_new_block()
619 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block()
620 if (goal < elo in udf_table_new_block()
242 udf_bitmap_new_block(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t goal, int *err) udf_bitmap_new_block() argument
581 udf_table_new_block(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t goal, int *err) udf_table_new_block() argument
721 udf_new_block(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t goal, int *err) udf_new_block() argument
[all...]
/kernel/linux/linux-6.6/fs/udf/
H A Dballoc.c240 uint32_t goal, int *err) in udf_bitmap_new_block()
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()
601 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block()
602 goal = 0; in udf_table_new_block()
604 /* We search for the closest matching block to goal. If we find in udf_table_new_block()
615 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block()
616 if (goal < elo in udf_table_new_block()
238 udf_bitmap_new_block(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t goal, int *err) udf_bitmap_new_block() argument
577 udf_table_new_block(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t goal, int *err) udf_table_new_block() argument
717 udf_new_block(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t goal, int *err) udf_new_block() argument
[all...]
/kernel/linux/linux-5.10/fs/ext2/
H A Dballoc.c250 * @grp_goal: given goal block relative to the allocation block group
254 * Test if the given goal block (group relative) is within the file's
257 * If the reservation window is outside the goal allocation group, return 0;
258 * grp_goal (given goal block) could be -1, which means no specific
259 * goal block. In this case, always return 1.
260 * If the goal block is within the reservation window, return 1;
284 * @goal: target allocation block
286 * Find the reserved window which includes the goal, or the previous one
287 * if the goal is not in any window.
288 * Returns NULL if there are no windows or if all windows start after the goal
291 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) search_reserve_window() argument
1205 ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, unsigned long *count, int *errp) ext2_new_blocks() argument
1433 ext2_new_block(struct inode *inode, unsigned long goal, int *errp) ext2_new_block() argument
[all...]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c1692 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async()
1693 || tinfo->curr.width != tinfo->goal.width in ahd_send_async()
1694 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async()
1695 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async()
2389 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period()
2392 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period()
2455 period = tinfo->goal.period; in ahd_linux_set_offset()
2456 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset()
2477 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt()
2479 unsigned int period = tinfo->goal in ahd_linux_set_dt()
[all...]
H A Daic7xxx_osm.c1611 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async()
1612 || tinfo->curr.width != tinfo->goal.width in ahc_send_async()
1613 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async()
1614 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async()
2337 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period()
2339 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period()
2390 period = tinfo->goal.period; in ahc_linux_set_offset()
2391 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset()
2409 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt()
2411 unsigned int period = tinfo->goal in ahc_linux_set_dt()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/aic7xxx/
H A Daic79xx_osm.c1686 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async()
1687 || tinfo->curr.width != tinfo->goal.width in ahd_send_async()
1688 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async()
1689 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async()
2377 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period()
2380 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period()
2443 period = tinfo->goal.period; in ahd_linux_set_offset()
2444 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset()
2465 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt()
2467 unsigned int period = tinfo->goal in ahd_linux_set_dt()
[all...]
H A Daic7xxx_osm.c1610 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async()
1611 || tinfo->curr.width != tinfo->goal.width in ahc_send_async()
1612 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async()
1613 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async()
2335 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period()
2337 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period()
2390 period = tinfo->goal.period; in ahc_linux_set_offset()
2391 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset()
2409 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt()
2411 unsigned int period = tinfo->goal in ahc_linux_set_dt()
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dsetup_percpu.c103 const unsigned long goal = __pa(MAX_DMA_ADDRESS); in pcpu_alloc_bootmem() local
109 ptr = memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem()
115 ptr = memblock_alloc_try_nid(size, align, goal, in pcpu_alloc_bootmem()
124 return memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem()
/kernel/linux/linux-6.6/fs/ext2/
H A Dballoc.c249 * @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) search_reserve_window() argument
1201 ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, unsigned long *count, int *errp, unsigned int flags) ext2_new_blocks() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_icache.c38 * The goal for walking incore inodes. These can correspond with incore inode
48 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
50 enum xfs_icwalk_goal goal, struct xfs_icwalk *icw);
1587 * the goal.
1591 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab()
1595 switch (goal) { in xfs_icwalk_igrab()
1611 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode()
1618 switch (goal) { in xfs_icwalk_process_inode()
1630 * For a given per-AG structure @pag and a goal, grab qualifying inodes and
1636 enum xfs_icwalk_goal goal, in xfs_icwalk_ag()
1590 xfs_icwalk_igrab( enum xfs_icwalk_goal goal, struct xfs_inode *ip, struct xfs_icwalk *icw) xfs_icwalk_igrab() argument
1610 xfs_icwalk_process_inode( enum xfs_icwalk_goal goal, struct xfs_inode *ip, struct xfs_perag *pag, struct xfs_icwalk *icw) xfs_icwalk_process_inode() argument
1634 xfs_icwalk_ag( struct xfs_perag *pag, enum xfs_icwalk_goal goal, struct xfs_icwalk *icw) xfs_icwalk_ag() argument
1743 xfs_icwalk( struct xfs_mount *mp, enum xfs_icwalk_goal goal, struct xfs_icwalk *icw) xfs_icwalk() argument
[all...]
/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_lblc.c299 int goal; in ip_vs_lblc_check_expire() local
316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
317 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
318 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
330 goal--; in ip_vs_lblc_check_expire()
333 if (goal <= 0) in ip_vs_lblc_check_expire()
H A Dip_vs_lblcr.c463 int goal; in ip_vs_lblcr_check_expire() local
480 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire()
481 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire()
482 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire()
494 goal--; in ip_vs_lblcr_check_expire()
497 if (goal <= 0) in ip_vs_lblcr_check_expire()
/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_lblc.c299 int goal; in ip_vs_lblc_check_expire() local
316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire()
317 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire()
318 goal = tbl->max_size/2; in ip_vs_lblc_check_expire()
330 goal--; in ip_vs_lblc_check_expire()
333 if (goal <= 0) in ip_vs_lblc_check_expire()
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1352 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) global() argument
1410 struct sym_trans *goal = &tp->tgoal; global() local
[all...]
/kernel/linux/linux-6.6/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1352 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) global() argument
1410 struct sym_trans *goal = &tp->tgoal; global() local
[all...]
/kernel/linux/linux-5.10/fs/ext4/
H A Dindirect.c254 ext4_fsblk_t goal; in ext4_find_goal() local
257 * XXX need to get goal block from mballoc's data structures in ext4_find_goal()
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()
618 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
/kernel/linux/linux-5.10/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()

Completed in 36 milliseconds

12345