Lines Matching refs:clusters
1371 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_holes() local
1375 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_holes()
1377 while (clusters) { in ocfs2_check_range_for_holes()
1390 if (extent_len > clusters) in ocfs2_check_range_for_holes()
1391 extent_len = clusters; in ocfs2_check_range_for_holes()
1393 clusters -= extent_len; in ocfs2_check_range_for_holes()
1426 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1455 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1456 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1458 while (clusters) { in ocfs2_allocate_unwritten_extents()
1470 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1471 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1490 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2037 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2046 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2048 while (clusters) { in ocfs2_check_range_for_refcount()
2061 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2062 extent_len = clusters; in ocfs2_check_range_for_refcount()
2064 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2089 u32 clusters = in ocfs2_prepare_inode_for_refcount() local
2100 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_refcount()