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

12

/fs/ocfs2/
H A Dreservations.c358 * ocfs2_find_resv_lhs() - find the window which contains goal
360 * @goal: which bit to search for
362 * If a window containing that goal is not found, we return the window
363 * which comes before goal. Returns NULL on empty rbtree or no window
364 * before goal.
367 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) argument
382 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal)
385 /* Check if we overshot the reservation just before goal? */
386 if (resv->r_start > goal) {
470 __ocfs2_resv_find_window(struct ocfs2_reservation_map *resmap, struct ocfs2_alloc_reservation *resv, unsigned int goal, unsigned int wanted) argument
695 unsigned int goal = 0; local
[all...]
H A Docfs2_trace.h1866 TP_PROTO(unsigned int r_start, unsigned int r_end, unsigned int goal,
1868 TP_ARGS(r_start, r_end, goal, wanted, empty_root),
1872 __field(unsigned int, goal)
1879 __entry->goal = goal;
1884 __entry->goal, __entry->wanted, __entry->empty_root)
/fs/hfs/
H A Dbitmap.c139 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 Dextent.c388 u32 start, len, goal; local
393 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents);
398 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents);
402 start = hfs_vbm_search_free(sb, goal, &len);
/fs/affs/
H A Dbitmap.c115 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...]
H A Daffs.h151 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
/fs/ufs/
H A Dballoc.c342 u64 goal, unsigned count, int *err,
351 UFSD("ENTER, ino %lu, fragment %llu, goal %llu, count %u\n",
353 (unsigned long long)goal, count);
407 if (goal >= uspi->s_size)
408 goal = 0;
409 if (goal == 0)
412 cgno = ufs_dtog(uspi, goal);
418 result = ufs_alloc_fragments (inode, cgno, goal, count, err);
469 result = ufs_alloc_fragments (inode, cgno, goal, request, err);
570 u64 goal, unsigne
341 ufs_new_fragments(struct inode *inode, void *p, u64 fragment, u64 goal, unsigned count, int *err, struct page *locked_page) argument
569 ufs_alloc_fragments(struct inode *inode, unsigned cgno, u64 goal, unsigned count, int *err) argument
679 ufs_alloccg_block(struct inode *inode, struct ufs_cg_private_info *ucpi, u64 goal, int *err) argument
772 ufs_bitmap_search(struct super_block *sb, struct ufs_cg_private_info *ucpi, u64 goal, unsigned count) argument
[all...]
H A Dinode.c182 u64 tmp, goal, lastfrag, block, lastblock; local
198 goal = 0;
248 goal = tmp + uspi->s_fpb;
250 goal, required + blockoff,
270 goal = tmp + uspi->s_fpb;
273 goal, uspi->s_fpb, err,
307 goal = 0;
338 u64 tmp, goal, block; local
379 goal = tmp + uspi->s_fpb;
381 goal
[all...]
/fs/udf/
H A Dballoc.c225 uint32_t goal, int *err)
238 if (goal >= sbi->s_partmaps[partition].s_partition_len)
239 goal = 0;
242 block = goal + (sizeof(struct spaceBitmapDesc) << 3);
642 uint32_t goal, int *err)
663 if (goal >= sbi->s_partmaps[partition].s_partition_len)
664 goal = 0;
666 /* We search for the closest matching block to goal. If we find
677 if (goal >= eloc.logicalBlockNum) {
678 if (goal < elo
223 udf_bitmap_new_block(struct super_block *sb, struct udf_bitmap *bitmap, uint16_t partition, uint32_t goal, int *err) argument
640 udf_table_new_block(struct super_block *sb, struct inode *table, uint16_t partition, uint32_t goal, int *err) argument
795 udf_new_block(struct super_block *sb, struct inode *inode, uint16_t partition, uint32_t goal, int *err) argument
[all...]
H A Dinode.c672 int goal = 0, pgoal = iinfo->i_location.logicalBlockNum; local
826 goal = iinfo->i_next_alloc_goal;
828 if (!goal) {
829 if (!(goal = pgoal)) /* XXX: what was intended here? */
830 goal = iinfo->i_location.logicalBlockNum + 1;
835 goal, err);
/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) argument
1210 ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, unsigned long *count, int *errp) argument
1430 ext2_new_block(struct inode *inode, unsigned long goal, int *errp) argument
[all...]
H A Dinode.c324 * Returns preferred place for a block (the goal).
396 ext2_fsblk_t goal, int indirect_blks, int blks,
418 current_block = ext2_new_blocks(inode,goal,&count,err);
474 int indirect_blks, int *blks, ext2_fsblk_t goal,
485 num = ext2_alloc_blocks(inode, goal, indirect_blks,
581 * in i_block_alloc_info, to assist find the proper goal block for next
627 ext2_fsblk_t goal; local
713 goal = ext2_find_goal(inode, iblock, partial);
726 err = ext2_alloc_branch(inode, indirect_blks, &count, goal,
395 ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t new_blocks[4], int *err) argument
473 ext2_alloc_branch(struct inode *inode, int indirect_blks, int *blks, ext2_fsblk_t goal, int *offsets, Indirect *branch) argument
H A Dxattr.c657 ext2_fsblk_t goal = ext2_group_first_block_no(sb, local
659 int block = ext2_new_block(inode, goal, &error);
/fs/ext3/
H A Dballoc.c258 * @grp_goal: given goal block relative to the allocation block group
262 * Test if the given goal block (group relative) is within the file's
265 * If the reservation window is outside the goal allocation group, return 0;
266 * grp_goal (given goal block) could be -1, which means no specific
267 * goal block. In this case, always return 1.
268 * If the goal block is within the reservation window, return 1;
292 * @goal: target allocation block
294 * Find the reserved window which includes the goal, or the previous one
295 * if the goal is not in any window.
296 * Returns NULL if there are no windows or if all windows start after the goal
299 search_reserve_window(struct rb_root *root, ext3_fsblk_t goal) argument
1486 ext3_new_blocks(handle_t *handle, struct inode *inode, ext3_fsblk_t goal, unsigned long *count, int *errp) argument
1763 ext3_new_block(handle_t *handle, struct inode *inode, ext3_fsblk_t goal, int *errp) argument
[all...]
H A Dinode.c565 * @goal: preferred place for allocation
576 ext3_fsblk_t goal, int indirect_blks, int blks,
598 current_block = ext3_new_blocks(handle,inode,goal,&count,err);
632 * @goal: preferred place for allocation
654 int indirect_blks, int *blks, ext3_fsblk_t goal,
665 num = ext3_alloc_blocks(handle, inode, goal, indirect_blks,
785 * in i_block_alloc_info, to assist find the proper goal block for next
866 ext3_fsblk_t goal; local
960 goal = ext3_find_goal(inode, iblock, partial);
971 err = ext3_alloc_branch(handle, inode, indirect_blks, &count, goal,
575 ext3_alloc_blocks(handle_t *handle, struct inode *inode, ext3_fsblk_t goal, int indirect_blks, int blks, ext3_fsblk_t new_blocks[4], int *err) argument
653 ext3_alloc_branch(handle_t *handle, struct inode *inode, int indirect_blks, int *blks, ext3_fsblk_t goal, int *offsets, Indirect *branch) argument
[all...]
H A Dext3.h528 * allocated to this file. This give us the goal (target) for the next
996 ext3_fsblk_t goal, int *errp);
998 ext3_fsblk_t goal, unsigned long *count, int *errp);
/fs/hfsplus/
H A Dextents.c433 u32 start, len, goal; local
447 goal = hfsplus_ext_lastblock(hip->first_extents);
452 goal = hfsplus_ext_lastblock(hip->cached_extents);
456 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len);
458 start = hfsplus_block_allocate(sb, goal, 0, &len);
459 if (start >= goal) {
/fs/ext4/
H A Dindirect.c245 ext4_fsblk_t goal; local
248 * XXX need to get goal block from mballoc's data structures
251 goal = ext4_find_near(inode, partial);
252 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS;
253 return goal;
300 * @goal: preferred place for allocation
335 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle,
336 ar->inode, ar->goal,
580 ar.goal
[all...]
H A Dialloc.c713 __u32 goal, uid_t *owner, int handle_type,
761 if (!goal)
762 goal = sbi->s_inode_goal;
764 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) {
765 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb);
766 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb);
711 __ext4_new_inode(handle_t *handle, struct inode *dir, umode_t mode, const struct qstr *qstr, __u32 goal, uid_t *owner, int handle_type, unsigned int line_no, int nblocks) argument
H A Dmigrate.c444 __u32 goal; local
474 goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) *
479 S_IFREG, NULL, goal, owner);
H A Dballoc.c615 * @goal: given target block(filesystem wide)
623 ext4_fsblk_t goal, unsigned int flags,
632 ar.goal = goal;
622 ext4_new_meta_blocks(handle_t *handle, struct inode *inode, ext4_fsblk_t goal, unsigned int flags, unsigned long *count, int *errp) argument
H A Dxattr.c906 ext4_fsblk_t goal, block; local
908 goal = ext4_group_first_block_no(sb,
913 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS;
915 block = ext4_new_meta_blocks(handle, inode, goal, 0,
H A Dext4.h100 /* prefer goal again. length */
116 /* allocate goal blocks or none */
118 /* goal is meaningful */
141 ext4_fsblk_t goal; member in struct:ext4_allocation_request
1286 atomic_t s_bal_goals; /* goal hits */
1968 ext4_fsblk_t goal,
2045 const struct qstr *qstr, __u32 goal,
2049 #define ext4_new_inode(handle, dir, mode, qstr, goal, owner) \
2050 __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \
2052 #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owne
[all...]
H A Dextents.c230 ext4_fsblk_t goal, newblock; local
232 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block));
233 newblock = ext4_new_meta_blocks(handle, inode, goal, flags,
1268 ext4_fsblk_t newblock, goal = 0; local
1274 goal = ext4_idx_pblock(EXT_FIRST_INDEX(ext_inode_hdr(inode)));
1275 if (goal > le32_to_cpu(es->s_first_data_block)) {
1277 goal--;
1279 goal = ext4_inode_to_goal_block(inode);
1280 newblock = ext4_new_meta_blocks(handle, inode, goal, flags,
4427 ar.goal
[all...]
/fs/gfs2/
H A Drgrp.c202 * @goal: start search at this block's bit-pair (within @buffer)
205 * Scope of @goal and returned block number is only within this bitmap buffer,
219 u32 goal, u8 state)
221 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1);
222 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5);
1084 u32 i, goal, count = 0; local
1087 goal = 0;
1090 while (goal < bi->bi_len * GFS2_NBBY) {
1091 goal = gfs2_bitfit(buffer, bi->bi_len, goal,
218 gfs2_bitfit(const u8 *buf, const unsigned int len, u32 goal, u8 state) argument
1457 u64 goal; local
2219 u64 goal; local
[all...]

Completed in 269 milliseconds

12