Lines Matching refs:clusters
1385 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_holes() local
1389 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_holes()
1391 while (clusters) { in ocfs2_check_range_for_holes()
1404 if (extent_len > clusters) in ocfs2_check_range_for_holes()
1405 extent_len = clusters; in ocfs2_check_range_for_holes()
1407 clusters -= extent_len; in ocfs2_check_range_for_holes()
1440 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1469 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1470 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1472 while (clusters) { in ocfs2_allocate_unwritten_extents()
1484 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1485 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1504 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2051 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2060 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2062 while (clusters) { in ocfs2_check_range_for_refcount()
2075 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2076 extent_len = clusters; in ocfs2_check_range_for_refcount()
2078 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2103 u32 clusters = in ocfs2_prepare_inode_for_refcount() local
2114 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_refcount()