Lines Matching refs:num_clusters
58 u32 *num_clusters,
2831 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2848 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2855 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2871 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3142 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3151 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback()
3162 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3166 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3172 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
3184 num_clusters, e_flags); in ocfs2_make_clusters_writable()
3186 ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3208 orig_num_clusters = num_clusters; in ocfs2_make_clusters_writable()
3210 while (num_clusters) { in ocfs2_make_clusters_writable()
3212 p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3220 set_len = min((u64)p_cluster + num_clusters, in ocfs2_make_clusters_writable()
3277 num_clusters -= set_len; in ocfs2_make_clusters_writable()
3325 u32 p_cluster, num_clusters; in ocfs2_replace_cow() local
3338 &num_clusters, &ext_flags); in ocfs2_replace_cow()
3346 if (cow_len < num_clusters) in ocfs2_replace_cow()
3347 num_clusters = cow_len; in ocfs2_replace_cow()
3351 num_clusters, ext_flags); in ocfs2_replace_cow()
3357 cow_len -= num_clusters; in ocfs2_replace_cow()
3358 cow_start += num_clusters; in ocfs2_replace_cow()
3455 u32 p_cluster, num_clusters; in ocfs2_refcount_cow() local
3460 &num_clusters, &ext_flags); in ocfs2_refcount_cow()
3466 if (write_len < num_clusters) in ocfs2_refcount_cow()
3467 num_clusters = write_len; in ocfs2_refcount_cow()
3471 num_clusters, max_cpos); in ocfs2_refcount_cow()
3478 write_len -= num_clusters; in ocfs2_refcount_cow()
3479 cpos += num_clusters; in ocfs2_refcount_cow()
3487 u32 *num_clusters, in ocfs2_xattr_value_get_clusters() argument
3494 num_clusters, &xv->xr_list, in ocfs2_xattr_value_get_clusters()
3509 u32 p_cluster, num_clusters; in ocfs2_refcounted_xattr_delete_need() local
3517 &num_clusters, &xv->xr_list, in ocfs2_refcounted_xattr_delete_need()
3524 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3526 while (num_clusters) { in ocfs2_refcounted_xattr_delete_need()
3528 p_cluster, num_clusters, in ocfs2_refcounted_xattr_delete_need()
3555 if (num_clusters <= le32_to_cpu(rec.r_clusters)) in ocfs2_refcounted_xattr_delete_need()
3558 num_clusters -= le32_to_cpu(rec.r_clusters); in ocfs2_refcounted_xattr_delete_need()
3559 p_cluster += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3652 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3667 p_cluster, num_clusters, in ocfs2_add_refcount_flag()
3696 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3704 p_cluster, num_clusters, 0, in ocfs2_add_refcount_flag()
3770 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3804 &num_clusters, &ext_flags); in ocfs2_attach_refcount_tree()
3813 p_cluster, num_clusters, in ocfs2_attach_refcount_tree()
3822 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3865 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3876 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3894 num_clusters, ext_flags, meta_ac); in ocfs2_add_refcounted_extent()
3901 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3909 ocfs2_clusters_to_bytes(osb->sb, num_clusters)); in ocfs2_add_refcounted_extent()
3972 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
3985 &num_clusters, &ext_flags); in ocfs2_duplicate_extent_list()
3994 num_clusters, in ocfs2_duplicate_extent_list()
4003 cpos += num_clusters; in ocfs2_duplicate_extent_list()
4505 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; in ocfs2_reflink_remap_extent() local
4526 &num_clusters, &ext_flags); in ocfs2_reflink_remap_extent()
4532 num_clusters = min_t(u32, num_clusters, slast - spos); in ocfs2_reflink_remap_extent()
4536 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4560 p_cluster, num_clusters, in ocfs2_reflink_remap_extent()
4574 num_clusters, in ocfs2_reflink_remap_extent()
4585 spos += num_clusters; in ocfs2_reflink_remap_extent()
4586 tpos += num_clusters; in ocfs2_reflink_remap_extent()
4587 remapped_clus += num_clusters; in ocfs2_reflink_remap_extent()