Lines Matching refs:count
280 unsigned int count = 0; in ext4_blks_to_allocate() local
289 count += blks; in ext4_blks_to_allocate()
291 count += blocks_to_boundary + 1; in ext4_blks_to_allocate()
292 return count; in ext4_blks_to_allocate()
295 count++; in ext4_blks_to_allocate()
296 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
297 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate()
298 count++; in ext4_blks_to_allocate()
300 return count; in ext4_blks_to_allocate()
540 int count = 0; in ext4_ind_map_blocks() local
557 count++; in ext4_ind_map_blocks()
559 while (count < map->m_len && count <= blocks_to_boundary) { in ext4_ind_map_blocks()
562 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
564 if (blk == first_block + count) in ext4_ind_map_blocks()
565 count++; in ext4_ind_map_blocks()
583 count = 0; in ext4_ind_map_blocks()
585 count = count * epb + (epb - offsets[i] - 1); in ext4_ind_map_blocks()
586 count++; in ext4_ind_map_blocks()
589 map->m_len = min_t(unsigned int, map->m_len, count); in ext4_ind_map_blocks()
651 count = ar.len; in ext4_ind_map_blocks()
658 ext4_da_update_reserve_space(inode, count, 1); in ext4_ind_map_blocks()
663 map->m_len = count; in ext4_ind_map_blocks()
664 if (count > blocks_to_boundary) in ext4_ind_map_blocks()
666 err = count; in ext4_ind_map_blocks()
864 unsigned long count, __le32 *first, in ext4_clear_blocks() argument
877 if (!ext4_inode_block_valid(inode, block_to_free, count)) { in ext4_clear_blocks()
880 (unsigned long long) block_to_free, count); in ext4_clear_blocks()
885 ext4_free_data_revoke_credits(inode, count)); in ext4_clear_blocks()
892 ext4_free_blocks(handle, inode, NULL, block_to_free, count, flags); in ext4_clear_blocks()
923 unsigned long count = 0; /* Number of blocks in the run */ in ext4_free_data() local
945 if (count == 0) { in ext4_free_data()
948 count = 1; in ext4_free_data()
949 } else if (nr == block_to_free + count) { in ext4_free_data()
950 count++; in ext4_free_data()
953 block_to_free, count, in ext4_free_data()
959 count = 1; in ext4_free_data()
964 if (!err && count > 0) in ext4_free_data()
966 count, block_to_free_p, p); in ext4_free_data()