/fs/ocfs2/ |
D | reservations.c | 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() 375 if (resv->r_start > goal) { in ocfs2_find_resv_lhs() 461 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument 479 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window() 488 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 489 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window() 496 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 508 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window() 534 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window() [all …]
|
D | ocfs2_trace.h | 1863 TP_PROTO(unsigned int r_start, unsigned int r_end, unsigned int goal, 1865 TP_ARGS(r_start, r_end, goal, wanted, empty_root), 1869 __field(unsigned int, goal) 1876 __entry->goal = goal; 1881 __entry->goal, __entry->wanted, __entry->empty_root)
|
/fs/ufs/ |
D | balloc.c | 345 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 …]
|
D | inode.c | 262 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()
|
/fs/udf/ |
D | balloc.c | 244 uint32_t goal, int *err) in udf_bitmap_new_block() argument 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() argument 605 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block() 606 goal = 0; in udf_table_new_block() 619 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 620 if (goal < eloc.logicalBlockNum + in udf_table_new_block() 624 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block() [all …]
|
D | udfdecl.h | 239 uint16_t partition, uint32_t goal, int *err);
|
D | inode.c | 702 udf_pblk_t goal = 0, pgoal = iinfo->i_location.logicalBlockNum; in inode_getblk() local 851 goal = iinfo->i_next_alloc_goal; in inode_getblk() 853 if (!goal) { in inode_getblk() 854 if (!(goal = pgoal)) /* XXX: what was intended here? */ in inode_getblk() 855 goal = iinfo->i_location.logicalBlockNum + 1; in inode_getblk() 860 goal, err); in inode_getblk()
|
/fs/affs/ |
D | bitmap.c | 115 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()
|
D | affs.h | 160 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
|
/fs/hfs/ |
D | bitmap.c | 139 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()
|
D | extent.c | 394 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()
|
/fs/ext2/ |
D | balloc.c | 291 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() 1205 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument 1243 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks() 1267 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks() 1268 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks() 1269 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks() 1270 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks() [all …]
|
D | inode.c | 396 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument 418 current_block = ext2_new_blocks(inode,goal,&count,err); in ext2_alloc_blocks() 476 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument 487 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch() 629 ext2_fsblk_t goal; in ext2_get_blocks() local 717 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks() 730 err = ext2_alloc_branch(inode, indirect_blks, &count, goal, in ext2_get_blocks()
|
D | xattr.c | 695 ext2_fsblk_t goal = ext2_group_first_block_no(sb, in ext2_xattr_set2() local 697 ext2_fsblk_t block = ext2_new_block(inode, goal, &error); in ext2_xattr_set2()
|
/fs/gfs2/ |
D | rgrp.c | 219 u32 goal, u8 state) in gfs2_bitfit() argument 221 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1); in gfs2_bitfit() 222 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5); in gfs2_bitfit() 1135 u32 i, goal, count = 0; in count_unlinked() local 1138 goal = 0; in count_unlinked() 1141 while (goal < bi->bi_blocks) { in count_unlinked() 1142 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal, in count_unlinked() 1144 if (goal == BFITNOENT) in count_unlinked() 1147 goal++; in count_unlinked() 1539 u64 goal; in rg_mblk_search() local [all …]
|
/fs/hfsplus/ |
D | extents.c | 445 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()
|
/fs/ext4/ |
D | indirect.c | 254 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() 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()
|
D | ialloc.c | 925 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode() argument 1003 if (!goal) in __ext4_new_inode() 1004 goal = sbi->s_inode_goal; in __ext4_new_inode() 1006 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { in __ext4_new_inode() 1007 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode() 1008 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
|
D | migrate.c | 420 __u32 goal, tmp_csum_seed; in ext4_ext_migrate() local 452 goal = (((inode->i_ino - 1) / EXT4_INODES_PER_GROUP(inode->i_sb)) * in ext4_ext_migrate() 457 S_IFREG, NULL, goal, owner, 0); in ext4_ext_migrate()
|
D | balloc.c | 719 ext4_fsblk_t goal, unsigned int flags, in ext4_new_meta_blocks() argument 728 ar.goal = goal; in ext4_new_meta_blocks()
|
D | mballoc.c | 4776 ext4_fsblk_t goal; in ext4_mb_initialize_context() local 4787 goal = ar->goal; in ext4_mb_initialize_context() 4788 if (goal < le32_to_cpu(es->s_first_data_block) || in ext4_mb_initialize_context() 4789 goal >= ext4_blocks_count(es)) in ext4_mb_initialize_context() 4790 goal = le32_to_cpu(es->s_first_data_block); in ext4_mb_initialize_context() 4791 ext4_get_group_no_and_offset(sb, goal, &group, &block); in ext4_mb_initialize_context() 4812 (unsigned) ar->goal, ac->ac_flags, ac->ac_2order, in ext4_mb_initialize_context() 5348 ext4_fsblk_t goal, block; in ext4_mb_new_blocks_simple() local 5351 goal = ar->goal; in ext4_mb_new_blocks_simple() 5352 if (goal < le32_to_cpu(es->s_first_data_block) || in ext4_mb_new_blocks_simple() [all …]
|
D | ext4.h | 168 ext4_fsblk_t goal; member 2588 ext4_fsblk_t goal, 2780 const struct qstr *qstr, __u32 goal, 2785 #define ext4_new_inode(handle, dir, mode, qstr, goal, owner, i_flags) \ argument 2786 __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \ 2788 #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \ argument 2790 __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \
|
D | extents.c | 244 ext4_fsblk_t goal, newblock; in ext4_ext_new_meta_block() local 246 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); in ext4_ext_new_meta_block() 247 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, in ext4_ext_new_meta_block() 1307 ext4_fsblk_t newblock, goal = 0; in ext4_ext_grow_indepth() local 1314 goal = ext4_idx_pblock(EXT_FIRST_INDEX(ext_inode_hdr(inode))); in ext4_ext_grow_indepth() 1315 if (goal > le32_to_cpu(es->s_first_data_block)) { in ext4_ext_grow_indepth() 1317 goal--; in ext4_ext_grow_indepth() 1319 goal = ext4_inode_to_goal_block(inode); in ext4_ext_grow_indepth() 1320 newblock = ext4_new_meta_blocks(handle, inode, goal, flags, in ext4_ext_grow_indepth() 4286 ar.goal = ext4_ext_find_goal(inode, path, map->m_lblk); in ext4_ext_map_blocks() [all …]
|
D | xattr.c | 2078 ext4_fsblk_t goal, block; in ext4_xattr_block_set() local 2083 goal = ext4_group_first_block_no(sb, in ext4_xattr_block_set() 2085 block = ext4_new_meta_blocks(handle, inode, goal, 0, in ext4_xattr_block_set()
|
/fs/btrfs/ |
D | Kconfig | 57 writes of the super block). The goal is to verify that the
|