• Home
  • Raw
  • Download

Lines Matching refs:count

165 	struct ext2_group_desc *desc, struct buffer_head *bh, int count)  in group_adjust_blocks()  argument
167 if (count) { in group_adjust_blocks()
173 desc->bg_free_blocks_count = cpu_to_le16(free_blocks + count); in group_adjust_blocks()
479 unsigned long count) in ext2_free_blocks() argument
493 if (!ext2_data_block_valid(sbi, block, count)) { in ext2_free_blocks()
496 "block = %lu, count = %lu", block, count); in ext2_free_blocks()
500 ext2_debug ("freeing block(s) %lu-%lu\n", block, block + count - 1); in ext2_free_blocks()
512 if (bit + count > EXT2_BLOCKS_PER_GROUP(sb)) { in ext2_free_blocks()
513 overflow = bit + count - EXT2_BLOCKS_PER_GROUP(sb); in ext2_free_blocks()
514 count -= overflow; in ext2_free_blocks()
525 if (in_range (le32_to_cpu(desc->bg_block_bitmap), block, count) || in ext2_free_blocks()
526 in_range (le32_to_cpu(desc->bg_inode_bitmap), block, count) || in ext2_free_blocks()
529 in_range (block + count - 1, le32_to_cpu(desc->bg_inode_table), in ext2_free_blocks()
534 block, count); in ext2_free_blocks()
538 for (i = 0, group_freed = 0; i < count; i++) { in ext2_free_blocks()
556 block += count; in ext2_free_blocks()
557 count = overflow; in ext2_free_blocks()
666 unsigned long *count, in ext2_try_to_allocate() argument
730 while (num < *count && grp_goal < end in ext2_try_to_allocate()
736 *count = num; in ext2_try_to_allocate()
739 *count = num; in ext2_try_to_allocate()
1095 unsigned long *count) in ext2_try_to_allocate_with_rsv() argument
1099 unsigned long num = *count; in ext2_try_to_allocate_with_rsv()
1109 grp_goal, count, NULL); in ext2_try_to_allocate_with_rsv()
1139 if (my_rsv->rsv_goal_size < *count) in ext2_try_to_allocate_with_rsv()
1140 my_rsv->rsv_goal_size = *count; in ext2_try_to_allocate_with_rsv()
1153 if (curr < *count) in ext2_try_to_allocate_with_rsv()
1155 *count - curr); in ext2_try_to_allocate_with_rsv()
1167 *count = num; in ext2_try_to_allocate_with_rsv()
1170 num = *count; in ext2_try_to_allocate_with_rsv()
1201 unsigned int count) in ext2_data_block_valid() argument
1204 (start_blk + count - 1 < start_blk) || in ext2_data_block_valid()
1205 (start_blk + count - 1 >= le32_to_cpu(sbi->s_es->s_blocks_count))) in ext2_data_block_valid()
1210 (start_blk + count - 1 >= sbi->s_sb_block)) in ext2_data_block_valid()
1231 unsigned long *count, int *errp) in ext2_new_blocks() argument
1251 unsigned long num = *count; in ext2_new_blocks()
1429 if (num < *count) { in ext2_new_blocks()
1430 dquot_free_block_nodirty(inode, *count-num); in ext2_new_blocks()
1432 *count = num; in ext2_new_blocks()
1443 dquot_free_block_nodirty(inode, *count); in ext2_new_blocks()
1452 unsigned long count = 1; in ext2_new_block() local
1454 return ext2_new_blocks(inode, goal, &count, errp); in ext2_new_block()