Lines Matching refs:count
273 unsigned int count = 0; in ext4_blks_to_allocate() local
282 count += blks; in ext4_blks_to_allocate()
284 count += blocks_to_boundary + 1; in ext4_blks_to_allocate()
285 return count; in ext4_blks_to_allocate()
288 count++; in ext4_blks_to_allocate()
289 while (count < blks && count <= blocks_to_boundary && in ext4_blks_to_allocate()
290 le32_to_cpu(*(branch[0].p + count)) == 0) { in ext4_blks_to_allocate()
291 count++; in ext4_blks_to_allocate()
293 return count; in ext4_blks_to_allocate()
521 int count = 0; in ext4_ind_map_blocks() local
538 count++; in ext4_ind_map_blocks()
540 while (count < map->m_len && count <= blocks_to_boundary) { in ext4_ind_map_blocks()
543 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
545 if (blk == first_block + count) in ext4_ind_map_blocks()
546 count++; in ext4_ind_map_blocks()
564 count = 0; in ext4_ind_map_blocks()
566 count = count * epb + (epb - offsets[i] - 1); in ext4_ind_map_blocks()
567 count++; in ext4_ind_map_blocks()
570 map->m_len = min_t(unsigned int, map->m_len, count); in ext4_ind_map_blocks()
631 count = ar.len; in ext4_ind_map_blocks()
635 map->m_len = count; in ext4_ind_map_blocks()
636 if (count > blocks_to_boundary) in ext4_ind_map_blocks()
638 err = count; in ext4_ind_map_blocks()
826 unsigned long count, __le32 *first, in ext4_clear_blocks() argument
840 count)) { in ext4_clear_blocks()
843 (unsigned long long) block_to_free, count); in ext4_clear_blocks()
872 ext4_free_blocks(handle, inode, NULL, block_to_free, count, flags); in ext4_clear_blocks()
903 unsigned long count = 0; /* Number of blocks in the run */ in ext4_free_data() local
925 if (count == 0) { in ext4_free_data()
928 count = 1; in ext4_free_data()
929 } else if (nr == block_to_free + count) { in ext4_free_data()
930 count++; in ext4_free_data()
933 block_to_free, count, in ext4_free_data()
939 count = 1; in ext4_free_data()
944 if (!err && count > 0) in ext4_free_data()
946 count, block_to_free_p, p); in ext4_free_data()