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()
3139 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3148 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback()
3159 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3163 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3169 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
3181 num_clusters, e_flags); in ocfs2_make_clusters_writable()
3183 ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3205 orig_num_clusters = num_clusters; in ocfs2_make_clusters_writable()
3207 while (num_clusters) { in ocfs2_make_clusters_writable()
3209 p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3217 set_len = min((u64)p_cluster + num_clusters, in ocfs2_make_clusters_writable()
3274 num_clusters -= set_len; in ocfs2_make_clusters_writable()
3322 u32 p_cluster, num_clusters; in ocfs2_replace_cow() local
3335 &num_clusters, &ext_flags); in ocfs2_replace_cow()
3343 if (cow_len < num_clusters) in ocfs2_replace_cow()
3344 num_clusters = cow_len; in ocfs2_replace_cow()
3348 num_clusters, ext_flags); in ocfs2_replace_cow()
3354 cow_len -= num_clusters; in ocfs2_replace_cow()
3355 cow_start += num_clusters; in ocfs2_replace_cow()
3452 u32 p_cluster, num_clusters; in ocfs2_refcount_cow() local
3457 &num_clusters, &ext_flags); in ocfs2_refcount_cow()
3463 if (write_len < num_clusters) in ocfs2_refcount_cow()
3464 num_clusters = write_len; in ocfs2_refcount_cow()
3468 num_clusters, max_cpos); in ocfs2_refcount_cow()
3475 write_len -= num_clusters; in ocfs2_refcount_cow()
3476 cpos += num_clusters; in ocfs2_refcount_cow()
3484 u32 *num_clusters, in ocfs2_xattr_value_get_clusters() argument
3491 num_clusters, &xv->xr_list, in ocfs2_xattr_value_get_clusters()
3506 u32 p_cluster, num_clusters; in ocfs2_refcounted_xattr_delete_need() local
3514 &num_clusters, &xv->xr_list, in ocfs2_refcounted_xattr_delete_need()
3521 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3523 while (num_clusters) { in ocfs2_refcounted_xattr_delete_need()
3525 p_cluster, num_clusters, in ocfs2_refcounted_xattr_delete_need()
3552 if (num_clusters <= le32_to_cpu(rec.r_clusters)) in ocfs2_refcounted_xattr_delete_need()
3555 num_clusters -= le32_to_cpu(rec.r_clusters); in ocfs2_refcounted_xattr_delete_need()
3556 p_cluster += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3649 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3664 p_cluster, num_clusters, in ocfs2_add_refcount_flag()
3693 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3701 p_cluster, num_clusters, 0, in ocfs2_add_refcount_flag()
3767 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3801 &num_clusters, &ext_flags); in ocfs2_attach_refcount_tree()
3810 p_cluster, num_clusters, in ocfs2_attach_refcount_tree()
3819 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3862 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3873 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3891 num_clusters, ext_flags, meta_ac); in ocfs2_add_refcounted_extent()
3898 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3906 ocfs2_clusters_to_bytes(osb->sb, num_clusters)); in ocfs2_add_refcounted_extent()
3969 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
3982 &num_clusters, &ext_flags); in ocfs2_duplicate_extent_list()
3991 num_clusters, in ocfs2_duplicate_extent_list()
4000 cpos += num_clusters; in ocfs2_duplicate_extent_list()
4502 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; in ocfs2_reflink_remap_extent() local
4523 &num_clusters, &ext_flags); in ocfs2_reflink_remap_extent()
4529 num_clusters = min_t(u32, num_clusters, slast - spos); in ocfs2_reflink_remap_extent()
4533 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4557 p_cluster, num_clusters, in ocfs2_reflink_remap_extent()
4571 num_clusters, in ocfs2_reflink_remap_extent()
4582 spos += num_clusters; in ocfs2_reflink_remap_extent()
4583 tpos += num_clusters; in ocfs2_reflink_remap_extent()
4584 remapped_clus += num_clusters; in ocfs2_reflink_remap_extent()