Lines Matching refs:clusters
1441 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1470 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1471 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1473 while (clusters) { in ocfs2_allocate_unwritten_extents()
1485 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1486 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1505 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2137 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2146 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2148 while (clusters) { in ocfs2_check_range_for_refcount()
2161 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2162 extent_len = clusters; in ocfs2_check_range_for_refcount()
2164 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2249 u32 clusters; in ocfs2_prepare_inode_for_write() local
2328 clusters = in ocfs2_prepare_inode_for_write()
2330 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_write()