Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/ocfs2/
Dreservations.c367 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument
382 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs()
386 if (resv->r_start > goal) { in ocfs2_find_resv_lhs()
472 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument
490 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window()
499 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window()
500 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window()
507 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window()
519 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window()
545 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window()
[all …]
/linux-4.19.296/fs/ufs/
Dballoc.c345 u64 goal, unsigned count, int *err, in ufs_new_fragments() argument
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, unsigned count, int *err) in ufs_alloc_fragments() argument
598 inode->i_ino, cgno, (unsigned long long)goal, count); in ufs_alloc_fragments()
[all …]
Dinode.c262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local
282 goal = 0; in ufs_inode_getfrag()
284 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag()
286 if (goal) in ufs_inode_getfrag()
287 goal += uspi->s_fpb; in ufs_inode_getfrag()
290 goal, nfrags, err, locked_page); in ufs_inode_getfrag()
341 u64 tmp = 0, goal; in ufs_inode_getblock() local
367 goal = tmp + uspi->s_fpb; in ufs_inode_getblock()
369 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock()
370 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, in ufs_inode_getblock()
/linux-4.19.296/include/linux/
Dbootmem.h96 unsigned long goal);
99 unsigned long goal) __malloc;
103 unsigned long goal) __malloc;
107 unsigned long goal) __malloc;
111 unsigned long goal) __malloc;
115 unsigned long goal,
119 unsigned long goal) __malloc;
122 unsigned long goal) __malloc;
126 unsigned long goal) __malloc;
/linux-4.19.296/fs/udf/
Dballoc.c246 uint32_t goal, int *err) in udf_bitmap_new_block() argument
261 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block()
262 goal = 0; in udf_bitmap_new_block()
265 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block()
574 uint32_t goal, int *err) in udf_table_new_block() argument
596 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block()
597 goal = 0; in udf_table_new_block()
610 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block()
611 if (goal < eloc.logicalBlockNum + in udf_table_new_block()
615 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block()
[all …]
Dudfdecl.h246 uint16_t partition, uint32_t goal, int *err);
Dinode.c696 udf_pblk_t goal = 0, pgoal = iinfo->i_location.logicalBlockNum; in inode_getblk() local
845 goal = iinfo->i_next_alloc_goal; in inode_getblk()
847 if (!goal) { in inode_getblk()
848 if (!(goal = pgoal)) /* XXX: what was intended here? */ in inode_getblk()
849 goal = iinfo->i_location.logicalBlockNum + 1; in inode_getblk()
854 goal, err); in inode_getblk()
/linux-4.19.296/fs/affs/
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()
Daffs.h160 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
/linux-4.19.296/fs/hfs/
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()
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-4.19.296/fs/ext2/
Dballoc.c291 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument
302 if (goal < rsv->rsv_start) in search_reserve_window()
304 else if (goal > rsv->rsv_end) in search_reserve_window()
315 if (rsv->rsv_start > goal) { in search_reserve_window()
1231 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument
1269 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks()
1293 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1294 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1295 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks()
1296 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks()
[all …]
Dinode.c399 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument
421 current_block = ext2_new_blocks(inode,goal,&count,err); in ext2_alloc_blocks()
477 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument
488 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch()
630 ext2_fsblk_t goal; in ext2_get_blocks() local
718 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks()
731 err = ext2_alloc_branch(inode, indirect_blks, &count, goal, in ext2_get_blocks()
Dxattr.c665 ext2_fsblk_t goal = ext2_group_first_block_no(sb, in ext2_xattr_set2() local
667 ext2_fsblk_t block = ext2_new_block(inode, goal, &error); in ext2_xattr_set2()
/linux-4.19.296/fs/hfsplus/
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-4.19.296/fs/gfs2/
Drgrp.c228 u32 goal, u8 state) in gfs2_bitfit() argument
230 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1); in gfs2_bitfit()
231 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5); in gfs2_bitfit()
1134 u32 i, goal, count = 0; in count_unlinked() local
1137 goal = 0; in count_unlinked()
1140 while (goal < bi->bi_len * GFS2_NBBY) { in count_unlinked()
1141 goal = gfs2_bitfit(buffer, bi->bi_len, goal, in count_unlinked()
1143 if (goal == BFITNOENT) in count_unlinked()
1146 goal++; in count_unlinked()
1553 u64 goal; in rg_mblk_search() local
[all …]
/linux-4.19.296/fs/ext4/
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()
344 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch()
345 ar->inode, ar->goal, in ext4_alloc_branch()
611 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
Dialloc.c746 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode() argument
862 if (!goal) in __ext4_new_inode()
863 goal = sbi->s_inode_goal; in __ext4_new_inode()
865 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { in __ext4_new_inode()
866 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
867 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
Dmigrate.c438 __u32 goal, tmp_csum_seed; in ext4_ext_migrate() local
470 goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * in ext4_ext_migrate()
475 S_IFREG, NULL, goal, owner, 0); in ext4_ext_migrate()
Dballoc.c677 ext4_fsblk_t goal, unsigned int flags, in ext4_new_meta_blocks() argument
686 ar.goal = goal; in ext4_new_meta_blocks()
Dext4.h167 ext4_fsblk_t goal; member
2300 ext4_fsblk_t goal,
2462 const struct qstr *qstr, __u32 goal,
2467 #define ext4_new_inode(handle, dir, mode, qstr, goal, owner, i_flags) \ argument
2468 __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \
2470 #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \ argument
2472 __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \
Dextents.c224 ext4_fsblk_t goal, newblock; in ext4_ext_new_meta_block() local
226 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); in ext4_ext_new_meta_block()
227 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, in ext4_ext_new_meta_block()
1297 ext4_fsblk_t newblock, goal = 0; in ext4_ext_grow_indepth() local
1304 goal = ext4_idx_pblock(EXT_FIRST_INDEX(ext_inode_hdr(inode))); in ext4_ext_grow_indepth()
1305 if (goal > le32_to_cpu(es->s_first_data_block)) { in ext4_ext_grow_indepth()
1307 goal--; in ext4_ext_grow_indepth()
1309 goal = ext4_inode_to_goal_block(inode); in ext4_ext_grow_indepth()
1310 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, in ext4_ext_grow_indepth()
4475 ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); in ext4_ext_map_blocks()
[all …]
/linux-4.19.296/block/
DKconfig.iosched81 goal.
/linux-4.19.296/fs/btrfs/
DKconfig51 writes of the super block). The goal is to verify that the
/linux-4.19.296/include/trace/events/
Dext4.h781 __field( __u64, goal )
792 __entry->goal = ar->goal;
804 __entry->len, __entry->logical, __entry->goal,
822 __field( __u64, goal )
834 __entry->goal = ar->goal;
847 __entry->goal, __entry->lleft, __entry->lright,

12