Lines Matching refs:num_clusters
57 u32 *num_clusters,
2837 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2854 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2861 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2877 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3148 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3157 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback()
3168 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3172 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3178 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
3190 num_clusters, e_flags); in ocfs2_make_clusters_writable()
3192 ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3214 orig_num_clusters = num_clusters; in ocfs2_make_clusters_writable()
3216 while (num_clusters) { in ocfs2_make_clusters_writable()
3218 p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3226 set_len = min((u64)p_cluster + num_clusters, in ocfs2_make_clusters_writable()
3283 num_clusters -= set_len; in ocfs2_make_clusters_writable()
3331 u32 p_cluster, num_clusters; in ocfs2_replace_cow() local
3344 &num_clusters, &ext_flags); in ocfs2_replace_cow()
3352 if (cow_len < num_clusters) in ocfs2_replace_cow()
3353 num_clusters = cow_len; in ocfs2_replace_cow()
3357 num_clusters, ext_flags); in ocfs2_replace_cow()
3363 cow_len -= num_clusters; in ocfs2_replace_cow()
3364 cow_start += num_clusters; in ocfs2_replace_cow()
3461 u32 p_cluster, num_clusters; in ocfs2_refcount_cow() local
3466 &num_clusters, &ext_flags); in ocfs2_refcount_cow()
3472 if (write_len < num_clusters) in ocfs2_refcount_cow()
3473 num_clusters = write_len; in ocfs2_refcount_cow()
3477 num_clusters, max_cpos); in ocfs2_refcount_cow()
3484 write_len -= num_clusters; in ocfs2_refcount_cow()
3485 cpos += num_clusters; in ocfs2_refcount_cow()
3493 u32 *num_clusters, in ocfs2_xattr_value_get_clusters() argument
3500 num_clusters, &xv->xr_list, in ocfs2_xattr_value_get_clusters()
3515 u32 p_cluster, num_clusters; in ocfs2_refcounted_xattr_delete_need() local
3523 &num_clusters, &xv->xr_list, in ocfs2_refcounted_xattr_delete_need()
3530 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3532 while (num_clusters) { in ocfs2_refcounted_xattr_delete_need()
3534 p_cluster, num_clusters, in ocfs2_refcounted_xattr_delete_need()
3561 if (num_clusters <= le32_to_cpu(rec.r_clusters)) in ocfs2_refcounted_xattr_delete_need()
3564 num_clusters -= le32_to_cpu(rec.r_clusters); in ocfs2_refcounted_xattr_delete_need()
3565 p_cluster += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3658 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3673 p_cluster, num_clusters, in ocfs2_add_refcount_flag()
3702 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3710 p_cluster, num_clusters, 0, in ocfs2_add_refcount_flag()
3776 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3810 &num_clusters, &ext_flags); in ocfs2_attach_refcount_tree()
3819 p_cluster, num_clusters, in ocfs2_attach_refcount_tree()
3828 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3871 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3882 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3900 num_clusters, ext_flags, meta_ac); in ocfs2_add_refcounted_extent()
3907 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3915 ocfs2_clusters_to_bytes(osb->sb, num_clusters)); in ocfs2_add_refcounted_extent()
3978 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
3991 &num_clusters, &ext_flags); in ocfs2_duplicate_extent_list()
4000 num_clusters, in ocfs2_duplicate_extent_list()
4009 cpos += num_clusters; in ocfs2_duplicate_extent_list()
4490 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; in ocfs2_reflink_remap_extent() local
4511 &num_clusters, &ext_flags); in ocfs2_reflink_remap_extent()
4517 num_clusters = min_t(u32, num_clusters, slast - spos); in ocfs2_reflink_remap_extent()
4521 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4545 p_cluster, num_clusters, in ocfs2_reflink_remap_extent()
4559 num_clusters, in ocfs2_reflink_remap_extent()
4570 spos += num_clusters; in ocfs2_reflink_remap_extent()
4571 tpos += num_clusters; in ocfs2_reflink_remap_extent()
4572 remapped_clus += num_clusters; in ocfs2_reflink_remap_extent()