Lines Matching refs:clusters
1433 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1462 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1463 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1465 while (clusters) { in ocfs2_allocate_unwritten_extents()
1477 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1478 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1497 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2057 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2066 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2068 while (clusters) { in ocfs2_check_range_for_refcount()
2081 if (extent_len > clusters) in ocfs2_check_range_for_refcount()
2082 extent_len = clusters; in ocfs2_check_range_for_refcount()
2084 clusters -= extent_len; in ocfs2_check_range_for_refcount()
2169 u32 clusters; in ocfs2_prepare_inode_for_write() local
2248 clusters = in ocfs2_prepare_inode_for_write()
2250 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_write()