Lines Matching refs:clusters
1435 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1464 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1465 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1467 while (clusters) { in ocfs2_allocate_unwritten_extents()
1479 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1480 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1499 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2131 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2140 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2142 while (clusters) { in ocfs2_check_range_for_refcount()
2155 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2156 extent_len = clusters; in ocfs2_check_range_for_refcount()
2158 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2243 u32 clusters; in ocfs2_prepare_inode_for_write() local
2322 clusters = in ocfs2_prepare_inode_for_write()
2324 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_write()