/fs/ufs/ |
D | balloc.c | 355 u64 goal, unsigned count, int *err, in ufs_new_fragments() argument 366 (unsigned long long)goal, count); in ufs_new_fragments() 420 if (goal >= uspi->s_size) in ufs_new_fragments() 421 goal = 0; in ufs_new_fragments() 422 if (goal == 0) in ufs_new_fragments() 425 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments() 431 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 482 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments() 590 u64 goal, unsigned count, int *err) in ufs_alloc_fragments() argument 601 inode->i_ino, cgno, (unsigned long long)goal, count); in ufs_alloc_fragments() [all …]
|
D | inode.c | 183 u64 tmp, goal, lastfrag, block, lastblock; in ufs_inode_getfrag() local 199 goal = 0; in ufs_inode_getfrag() 249 goal = tmp + uspi->s_fpb; in ufs_inode_getfrag() 251 goal, required + blockoff, in ufs_inode_getfrag() 271 goal = tmp + uspi->s_fpb; in ufs_inode_getfrag() 274 goal, uspi->s_fpb, err, in ufs_inode_getfrag() 339 u64 tmp, goal, block; in ufs_inode_getblock() local 380 goal = tmp + uspi->s_fpb; in ufs_inode_getblock() 382 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock() 383 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, in ufs_inode_getblock()
|
/fs/udf/ |
D | balloc.c | 290 uint32_t goal, int *err) in udf_bitmap_new_block() argument 303 if (goal < 0 || goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block() 304 goal = 0; in udf_bitmap_new_block() 307 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block() 732 uint32_t goal, int *err) in udf_table_new_block() argument 753 if (goal < 0 || goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block() 754 goal = 0; in udf_table_new_block() 767 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 768 if (goal < eloc.logicalBlockNum + in udf_table_new_block() 772 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block() [all …]
|
D | inode.c | 487 int goal = 0, pgoal = iinfo->i_location.logicalBlockNum; in inode_getblk() local 642 goal = iinfo->i_next_alloc_goal; in inode_getblk() 644 if (!goal) { in inode_getblk() 645 if (!(goal = pgoal)) /* XXX: what was intended here? */ in inode_getblk() 646 goal = iinfo->i_location.logicalBlockNum + 1; in inode_getblk() 651 goal, err); in inode_getblk()
|
/fs/affs/ |
D | bitmap.c | 138 affs_alloc_block(struct inode *inode, u32 goal) in affs_alloc_block() argument 151 pr_debug("AFFS: balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); in affs_alloc_block() 159 if (!goal || goal > sbi->s_partition_size) { in affs_alloc_block() 160 if (goal) in affs_alloc_block() 161 affs_warning(sb, "affs_balloc", "invalid goal %d", goal); in affs_alloc_block() 164 goal = sbi->s_reserved; in affs_alloc_block() 167 blk = goal - sbi->s_reserved; in affs_alloc_block()
|
D | affs.h | 150 extern u32 affs_alloc_block(struct inode *inode, u32 goal);
|
/fs/gfs2/ |
D | rgrp.c | 66 static u32 rgblk_search(struct gfs2_rgrpd *rgd, u32 goal, 149 static u32 gfs2_bitfit(const u8 *buffer, unsigned int buflen, u32 goal, in gfs2_bitfit() argument 159 g1 = (goal / GFS2_NBBY); in gfs2_bitfit() 165 startbit = bit = (goal % GFS2_NBBY) * GFS2_BIT_SIZE; in gfs2_bitfit() 173 return goal + in gfs2_bitfit() 906 u32 goal = 0, block; in try_rgrp_unlink() local 912 if (goal >= rgd->rd_data) in try_rgrp_unlink() 916 block = rgblk_search(rgd, goal, GFS2_BLKST_UNLINKED, in try_rgrp_unlink() 924 goal++; in try_rgrp_unlink() 1250 static u32 rgblk_search(struct gfs2_rgrpd *rgd, u32 goal, in rgblk_search() argument [all …]
|
/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 | 375 u32 start, len, goal; in hfs_extend_file() local 380 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); in hfs_extend_file() 385 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); in hfs_extend_file() 389 start = hfs_vbm_search_free(sb, goal, &len); in hfs_extend_file()
|
/fs/ext2/ |
D | balloc.c | 301 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument 312 if (goal < rsv->rsv_start) in search_reserve_window() 314 else if (goal > rsv->rsv_end) in search_reserve_window() 325 if (rsv->rsv_start > goal) { in search_reserve_window() 1217 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument 1257 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks() 1281 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks() 1282 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks() 1283 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks() 1284 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks() [all …]
|
D | inode.c | 364 ext2_fsblk_t goal, int indirect_blks, int blks, in ext2_alloc_blocks() argument 386 current_block = ext2_new_blocks(inode,goal,&count,err); in ext2_alloc_blocks() 440 int indirect_blks, int *blks, ext2_fsblk_t goal, in ext2_alloc_branch() argument 451 num = ext2_alloc_blocks(inode, goal, indirect_blks, in ext2_alloc_branch() 581 ext2_fsblk_t goal; in ext2_get_blocks() local 637 goal = ext2_find_goal(inode, iblock, partial); in ext2_get_blocks() 650 err = ext2_alloc_branch(inode, indirect_blks, &count, goal, in ext2_get_blocks()
|
D | xattr.c | 662 ext2_fsblk_t goal = ext2_group_first_block_no(sb, in ext2_xattr_set2() local 664 int block = ext2_new_block(inode, goal, &error); in ext2_xattr_set2()
|
/fs/ext3/ |
D | balloc.c | 288 search_reserve_window(struct rb_root *root, ext3_fsblk_t goal) in search_reserve_window() argument 299 if (goal < rsv->rsv_start) in search_reserve_window() 301 else if (goal > rsv->rsv_end) in search_reserve_window() 312 if (rsv->rsv_start > goal) { in search_reserve_window() 1469 ext3_fsblk_t goal, unsigned long *count, int *errp) in ext3_new_blocks() argument 1512 ext3_debug("goal=%lu.\n", goal); in ext3_new_blocks() 1533 if (goal < le32_to_cpu(es->s_first_data_block) || in ext3_new_blocks() 1534 goal >= le32_to_cpu(es->s_blocks_count)) in ext3_new_blocks() 1535 goal = le32_to_cpu(es->s_first_data_block); in ext3_new_blocks() 1536 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext3_new_blocks() [all …]
|
D | inode.c | 518 ext3_fsblk_t goal, int indirect_blks, int blks, in ext3_alloc_blocks() argument 540 current_block = ext3_new_blocks(handle,inode,goal,&count,err); in ext3_alloc_blocks() 594 int indirect_blks, int *blks, ext3_fsblk_t goal, in ext3_alloc_branch() argument 605 num = ext3_alloc_blocks(handle, inode, goal, indirect_blks, in ext3_alloc_branch() 797 ext3_fsblk_t goal; in ext3_get_blocks_handle() local 887 goal = ext3_find_goal(inode, iblock, partial); in ext3_get_blocks_handle() 901 err = ext3_alloc_branch(handle, inode, indirect_blks, &count, goal, in ext3_get_blocks_handle()
|
D | xattr.c | 802 ext3_fsblk_t goal = ext3_group_first_block_no(sb, in ext3_xattr_block_set() local 805 goal, &error); in ext3_xattr_block_set()
|
/fs/hfsplus/ |
D | extents.c | 351 u32 start, len, goal; in hfsplus_file_extend() local 363 goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).first_extents); in hfsplus_file_extend() 368 goal = hfsplus_ext_lastblock(HFSPLUS_I(inode).cached_extents); in hfsplus_file_extend() 372 start = hfsplus_block_allocate(sb, HFSPLUS_SB(sb).total_blocks, goal, &len); in hfsplus_file_extend() 374 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend() 375 if (start >= goal) { in hfsplus_file_extend()
|
/fs/ext4/ |
D | balloc.c | 635 ext4_fsblk_t goal, unsigned long *count, int *errp) in ext4_new_meta_blocks() argument 643 ar.goal = goal; in ext4_new_meta_blocks()
|
D | mballoc.h | 213 struct ext4_free_extent goal; /* goal allocation */ member
|
D | mballoc.c | 2184 sprintf(buf3, "%u/%d/%u@%u", hs->goal.fe_group, in ext4_mb_seq_history_show() 2185 hs->goal.fe_start, hs->goal.fe_len, in ext4_mb_seq_history_show() 2186 hs->goal.fe_logical); in ext4_mb_seq_history_show() 2470 h.goal = ac->ac_g_ex; in ext4_mb_store_history() 4278 ext4_fsblk_t goal; in ext4_mb_initialize_context() local 4289 goal = ar->goal; in ext4_mb_initialize_context() 4290 if (goal < le32_to_cpu(es->s_first_data_block) || in ext4_mb_initialize_context() 4291 goal >= ext4_blocks_count(es)) in ext4_mb_initialize_context() 4292 goal = le32_to_cpu(es->s_first_data_block); in ext4_mb_initialize_context() 4293 ext4_get_group_no_and_offset(sb, goal, &group, &block); in ext4_mb_initialize_context() [all …]
|
D | inode.c | 556 ext4_lblk_t iblock, ext4_fsblk_t goal, in ext4_alloc_blocks() argument 581 goal, &count, err); in ext4_alloc_blocks() 611 ar.goal = goal; in ext4_alloc_blocks() 675 int *blks, ext4_fsblk_t goal, in ext4_alloc_branch() argument 686 num = ext4_alloc_blocks(handle, inode, iblock, goal, indirect_blks, in ext4_alloc_branch() 870 ext4_fsblk_t goal; in ext4_get_blocks_handle() local 916 goal = ext4_find_goal(inode, iblock, partial); in ext4_get_blocks_handle() 931 &count, goal, in ext4_get_blocks_handle()
|
D | extents.c | 193 ext4_fsblk_t goal, newblock; in ext4_ext_new_meta_block() local 195 goal = ext4_ext_find_goal(inode, path, le32_to_cpu(ex->ee_block)); in ext4_ext_new_meta_block() 196 newblock = ext4_new_meta_blocks(handle, inode, goal, NULL, err); in ext4_ext_new_meta_block() 2844 ar.goal = ext4_ext_find_goal(inode, path, iblock); in ext4_ext_get_blocks() 2856 ar.goal, newblock, allocated); in ext4_ext_get_blocks()
|
D | ext4.h | 88 ext4_fsblk_t goal; member 1012 ext4_fsblk_t goal, unsigned long *count, int *errp);
|
D | xattr.c | 813 ext4_fsblk_t goal = ext4_group_first_block_no(sb, in ext4_xattr_block_set() local 816 goal, NULL, &error); in ext4_xattr_block_set()
|
/fs/ocfs2/ |
D | dlmglue.c | 1179 unsigned long goal) in lockres_add_mask_waiter() argument 1187 mw->mw_goal = goal; in lockres_add_mask_waiter()
|