Lines Matching refs:clusters
1438 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1467 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1468 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1470 while (clusters) { in ocfs2_allocate_unwritten_extents()
1482 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1483 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1502 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2128 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2137 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2139 while (clusters) { in ocfs2_check_range_for_refcount()
2152 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2153 extent_len = clusters; in ocfs2_check_range_for_refcount()
2155 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2240 u32 clusters; in ocfs2_prepare_inode_for_write() local
2319 clusters = in ocfs2_prepare_inode_for_write()
2321 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_write()