Lines Matching full:clusters
1850 * If we just need to split the header or tail clusters, in ocfs2_split_refcount_rec()
2328 * Mark the already-existing extent at cpos as refcounted for len clusters.
2365 * Given some contiguous physical clusters, calculate what we need
2372 u32 clusters, in ocfs2_calc_refcount_meta_credits() argument
2383 while (clusters) { in ocfs2_calc_refcount_meta_credits()
2385 cpos, clusters, &rec, in ocfs2_calc_refcount_meta_credits()
2415 recs_add, (unsigned long long)cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2420 len = min((u64)cpos + clusters, le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2449 if (cpos + clusters < le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2457 clusters -= len; in ocfs2_calc_refcount_meta_credits()
2500 (unsigned long long)start_cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2508 * For refcount tree, we will decrease some contiguous clusters
2522 u32 clusters, in ocfs2_prepare_refcount_change_for_del() argument
2556 start_cpos, clusters, in ocfs2_prepare_refcount_change_for_del()
2617 * Calculate out the start and number of virtual clusters we need to CoW.
2705 * How many clusters do we actually need from in ocfs2_refcount_cal_cow_clusters()
2732 * how many clusters to grab. We align in ocfs2_refcount_cal_cow_clusters()
2799 * clusters, continue with the next extent block if possible. in ocfs2_refcount_cal_cow_clusters()
2828 * clusters(starting form p_cluster) in the refcount tree.
2833 * 2. In some case, we may not need to reserve new clusters(e.g, reflink), so
3126 /*If the old clusters is unwritten, no need to duplicate. */ in ocfs2_replace_clusters()
3232 * 2. If refcount > 1, allocate clusters. in ocfs2_make_clusters_writable()
3375 * Starting at cpos, try to CoW write_len clusters. Don't CoW
3451 * CoW any and all clusters between cpos and cpos+write_len.
3453 * clusters between cpos and cpos+write_len are safe to modify.
3515 u32 cpos = 0, clusters = le32_to_cpu(xv->xr_clusters); in ocfs2_refcounted_xattr_delete_need() local
3520 while (cpos < clusters) { in ocfs2_refcounted_xattr_delete_need()
3546 * We really don't know whether the other clusters is in in ocfs2_refcounted_xattr_delete_need()
3548 * case that all the clusters are in this block and each in ocfs2_refcounted_xattr_delete_need()
3550 * clusters * 2 new refcount rec. in ocfs2_refcounted_xattr_delete_need()
3552 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > in ocfs2_refcounted_xattr_delete_need()
3775 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3804 clusters = ocfs2_clusters_for_bytes(inode->i_sb, size); in ocfs2_attach_refcount_tree()
3807 while (cpos < clusters) { in ocfs2_attach_refcount_tree()
3977 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
3985 clusters = ocfs2_clusters_for_bytes(s_inode->i_sb, size); in ocfs2_duplicate_extent_list()
3988 while (cpos < clusters) { in ocfs2_duplicate_extent_list()