Lines Matching refs:num_clusters
67 u32 *num_clusters,
2845 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2862 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2869 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2885 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3153 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3164 end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_cow_sync_writeback()
3203 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3207 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3213 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
3225 num_clusters, e_flags); in ocfs2_make_clusters_writable()
3227 ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3249 orig_num_clusters = num_clusters; in ocfs2_make_clusters_writable()
3251 while (num_clusters) { in ocfs2_make_clusters_writable()
3253 p_cluster, num_clusters, in ocfs2_make_clusters_writable()
3261 set_len = min((u64)p_cluster + num_clusters, in ocfs2_make_clusters_writable()
3318 num_clusters -= set_len; in ocfs2_make_clusters_writable()
3366 u32 p_cluster, num_clusters; in ocfs2_replace_cow() local
3379 &num_clusters, &ext_flags); in ocfs2_replace_cow()
3387 if (cow_len < num_clusters) in ocfs2_replace_cow()
3388 num_clusters = cow_len; in ocfs2_replace_cow()
3392 num_clusters, ext_flags); in ocfs2_replace_cow()
3398 cow_len -= num_clusters; in ocfs2_replace_cow()
3399 cow_start += num_clusters; in ocfs2_replace_cow()
3496 u32 p_cluster, num_clusters; in ocfs2_refcount_cow() local
3501 &num_clusters, &ext_flags); in ocfs2_refcount_cow()
3507 if (write_len < num_clusters) in ocfs2_refcount_cow()
3508 num_clusters = write_len; in ocfs2_refcount_cow()
3512 num_clusters, max_cpos); in ocfs2_refcount_cow()
3519 write_len -= num_clusters; in ocfs2_refcount_cow()
3520 cpos += num_clusters; in ocfs2_refcount_cow()
3528 u32 *num_clusters, in ocfs2_xattr_value_get_clusters() argument
3535 num_clusters, &xv->xr_list, in ocfs2_xattr_value_get_clusters()
3550 u32 p_cluster, num_clusters; in ocfs2_refcounted_xattr_delete_need() local
3558 &num_clusters, &xv->xr_list, in ocfs2_refcounted_xattr_delete_need()
3565 cpos += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3567 while (num_clusters) { in ocfs2_refcounted_xattr_delete_need()
3569 p_cluster, num_clusters, in ocfs2_refcounted_xattr_delete_need()
3596 if (num_clusters <= le32_to_cpu(rec.r_clusters)) in ocfs2_refcounted_xattr_delete_need()
3599 num_clusters -= le32_to_cpu(rec.r_clusters); in ocfs2_refcounted_xattr_delete_need()
3600 p_cluster += num_clusters; in ocfs2_refcounted_xattr_delete_need()
3693 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcount_flag() argument
3708 p_cluster, num_clusters, in ocfs2_add_refcount_flag()
3737 cpos, num_clusters, p_cluster, in ocfs2_add_refcount_flag()
3745 p_cluster, num_clusters, 0, in ocfs2_add_refcount_flag()
3811 u32 cpos, num_clusters, clusters, p_cluster; in ocfs2_attach_refcount_tree() local
3845 &num_clusters, &ext_flags); in ocfs2_attach_refcount_tree()
3854 p_cluster, num_clusters, in ocfs2_attach_refcount_tree()
3863 cpos += num_clusters; in ocfs2_attach_refcount_tree()
3906 u32 cpos, u32 p_cluster, u32 num_clusters, in ocfs2_add_refcounted_extent() argument
3917 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3935 num_clusters, ext_flags, meta_ac); in ocfs2_add_refcounted_extent()
3942 p_cluster, num_clusters, in ocfs2_add_refcounted_extent()
3950 ocfs2_clusters_to_bytes(osb->sb, num_clusters)); in ocfs2_add_refcounted_extent()
4013 u32 p_cluster, num_clusters, clusters, cpos; in ocfs2_duplicate_extent_list() local
4026 &num_clusters, &ext_flags); in ocfs2_duplicate_extent_list()
4035 num_clusters, in ocfs2_duplicate_extent_list()
4044 cpos += num_clusters; in ocfs2_duplicate_extent_list()
4526 u32 p_cluster, num_clusters, slast, spos, tpos; in ocfs2_reflink_remap_extent() local
4547 &num_clusters, &ext_flags); in ocfs2_reflink_remap_extent()
4553 num_clusters = min_t(u32, num_clusters, slast - spos); in ocfs2_reflink_remap_extent()
4557 plen = ocfs2_clusters_to_bytes(t_inode->i_sb, num_clusters); in ocfs2_reflink_remap_extent()
4581 p_cluster, num_clusters, in ocfs2_reflink_remap_extent()
4595 num_clusters, in ocfs2_reflink_remap_extent()
4606 spos += num_clusters; in ocfs2_reflink_remap_extent()
4607 tpos += num_clusters; in ocfs2_reflink_remap_extent()