Lines Matching full:clusters
1844 * If we just need to split the header or tail clusters, in ocfs2_split_refcount_rec()
2322 * Mark the already-existing extent at cpos as refcounted for len clusters.
2359 * Given some contiguous physical clusters, calculate what we need
2366 u32 clusters, in ocfs2_calc_refcount_meta_credits() argument
2377 while (clusters) { in ocfs2_calc_refcount_meta_credits()
2379 cpos, clusters, &rec, in ocfs2_calc_refcount_meta_credits()
2409 recs_add, (unsigned long long)cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2414 len = min((u64)cpos + clusters, le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2443 if (cpos + clusters < le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2451 clusters -= len; in ocfs2_calc_refcount_meta_credits()
2494 (unsigned long long)start_cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2502 * For refcount tree, we will decrease some contiguous clusters
2516 u32 clusters, in ocfs2_prepare_refcount_change_for_del() argument
2550 start_cpos, clusters, in ocfs2_prepare_refcount_change_for_del()
2611 * Calculate out the start and number of virtual clusters we need to CoW.
2699 * How many clusters do we actually need from in ocfs2_refcount_cal_cow_clusters()
2726 * how many clusters to grab. We align in ocfs2_refcount_cal_cow_clusters()
2793 * clusters, continue with the next extent block if possible. in ocfs2_refcount_cal_cow_clusters()
2822 * clusters(starting form p_cluster) in the refcount tree.
2827 * 2. In some case, we may not need to reserve new clusters(e.g, reflink), so
3121 /*If the old clusters is unwritten, no need to duplicate. */ in ocfs2_replace_clusters()
3227 * 2. If refcount > 1, allocate clusters. in ocfs2_make_clusters_writable()
3370 * Starting at cpos, try to CoW write_len clusters. Don't CoW
3446 * CoW any and all clusters between cpos and cpos+write_len.
3448 * clusters between cpos and cpos+write_len are safe to modify.
3510 u32 cpos = 0, clusters = le32_to_cpu(xv->xr_clusters); in ocfs2_refcounted_xattr_delete_need() local
3515 while (cpos < clusters) { in ocfs2_refcounted_xattr_delete_need()
3541 * We really don't know whether the other clusters is in in ocfs2_refcounted_xattr_delete_need()
3543 * case that all the clusters are in this block and each in ocfs2_refcounted_xattr_delete_need()
3545 * clusters * 2 new refcount rec. in ocfs2_refcounted_xattr_delete_need()
3547 if (le16_to_cpu(rb->rf_records.rl_used) + clusters * 2 > in ocfs2_refcounted_xattr_delete_need()
3770 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3799 clusters = ocfs2_clusters_for_bytes(inode->i_sb, size); in ocfs2_attach_refcount_tree()
3802 while (cpos < clusters) { in ocfs2_attach_refcount_tree()
3972 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
3980 clusters = ocfs2_clusters_for_bytes(s_inode->i_sb, size); in ocfs2_duplicate_extent_list()
3983 while (cpos < clusters) { in ocfs2_duplicate_extent_list()