Lines Matching refs:num_clusters
66 u32 *num_clusters,
2858 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2875 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2882 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2898 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3163 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3174 end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_cow_sync_writeback()
3213 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3217 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3223 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
3235 num_clusters, e_flags); in ocfs2_make_clusters_writable()
3237 ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3259 orig_num_clusters = num_clusters; in ocfs2_make_clusters_writable()
3261 while (num_clusters) { in ocfs2_make_clusters_writable()
3263 p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3271 set_len = min((u64)p_cluster + num_clusters, in ocfs2_make_clusters_writable()
3328 num_clusters -= set_len; in ocfs2_make_clusters_writable()
3376 u32 p_cluster, num_clusters; in ocfs2_replace_cow() local
3391 &num_clusters, &ext_flags); in ocfs2_replace_cow()
3399 if (cow_len < num_clusters) in ocfs2_replace_cow()
3400 num_clusters = cow_len; in ocfs2_replace_cow()
3404 num_clusters, ext_flags); in ocfs2_replace_cow()
3410 cow_len -= num_clusters; in ocfs2_replace_cow()
3411 cow_start += num_clusters; in ocfs2_replace_cow()
3509 u32 p_cluster, num_clusters; in ocfs2_refcount_cow() local
3514 &num_clusters, &ext_flags); in ocfs2_refcount_cow()
3520 if (write_len < num_clusters) in ocfs2_refcount_cow()
3521 num_clusters = write_len; in ocfs2_refcount_cow()
3525 num_clusters, max_cpos); in ocfs2_refcount_cow()
3532 write_len -= num_clusters; in ocfs2_refcount_cow()
3533 cpos += num_clusters; in ocfs2_refcount_cow()
3541 u32 *num_clusters, in ocfs2_xattr_value_get_clusters() argument
3548 num_clusters, &xv->xr_list, in ocfs2_xattr_value_get_clusters()
3563 u32 p_cluster, num_clusters; in ocfs2_refcounted_xattr_delete_need() local
3571 &num_clusters, &xv->xr_list, in ocfs2_refcounted_xattr_delete_need()
3578 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3580 while (num_clusters) { in ocfs2_refcounted_xattr_delete_need()
3582 p_cluster, num_clusters, in ocfs2_refcounted_xattr_delete_need()
3609 if (num_clusters <= le32_to_cpu(rec.r_clusters)) in ocfs2_refcounted_xattr_delete_need()
3612 num_clusters -= le32_to_cpu(rec.r_clusters); in ocfs2_refcounted_xattr_delete_need()
3613 p_cluster += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3707 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3719 p_cluster, num_clusters, in ocfs2_add_refcount_flag()
3748 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3756 p_cluster, num_clusters, 0, in ocfs2_add_refcount_flag()
3822 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3856 &num_clusters, &ext_flags); in ocfs2_attach_refcount_tree()
3865 p_cluster, num_clusters, in ocfs2_attach_refcount_tree()
3874 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3917 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3928 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3946 num_clusters, ext_flags, meta_ac); in ocfs2_add_refcounted_extent()
3953 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
4017 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
4030 &num_clusters, &ext_flags); in ocfs2_duplicate_extent_list()
4039 num_clusters, in ocfs2_duplicate_extent_list()
4048 cpos += num_clusters; in ocfs2_duplicate_extent_list()