Searched refs:num_free_extents (Results 1 – 6 of 6) sorted by relevance
161 int ret, num_free_extents; in ocfs2_lock_meta_allocator_move_extents() local165 num_free_extents = ocfs2_num_free_extents(et); in ocfs2_lock_meta_allocator_move_extents()166 if (num_free_extents < 0) { in ocfs2_lock_meta_allocator_move_extents()167 ret = num_free_extents; in ocfs2_lock_meta_allocator_move_extents()172 if (!num_free_extents || in ocfs2_lock_meta_allocator_move_extents()173 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) in ocfs2_lock_meta_allocator_move_extents()
2626 int ret = 0, num_free_extents; in ocfs2_lock_allocators() local2636 num_free_extents = ocfs2_num_free_extents(et); in ocfs2_lock_allocators()2637 if (num_free_extents < 0) { in ocfs2_lock_allocators()2638 ret = num_free_extents; in ocfs2_lock_allocators()2656 if (!num_free_extents || in ocfs2_lock_allocators()2657 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) { in ocfs2_lock_allocators()
3154 int credits, num_free_extents, drop_alloc_sem = 0; in ocfs2_extend_dir() local3224 num_free_extents = ocfs2_num_free_extents(&et); in ocfs2_extend_dir()3225 if (num_free_extents < 0) { in ocfs2_extend_dir()3226 status = num_free_extents; in ocfs2_extend_dir()3231 if (!num_free_extents) { in ocfs2_extend_dir()
5654 int ret = 0, num_free_extents; in ocfs2_reserve_blocks_for_rec_trunc() local5660 num_free_extents = ocfs2_num_free_extents(et); in ocfs2_reserve_blocks_for_rec_trunc()5661 if (num_free_extents < 0) { in ocfs2_reserve_blocks_for_rec_trunc()5662 ret = num_free_extents; in ocfs2_reserve_blocks_for_rec_trunc()5667 if (!num_free_extents || in ocfs2_reserve_blocks_for_rec_trunc()5668 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) in ocfs2_reserve_blocks_for_rec_trunc()
2846 int num_free_extents = ocfs2_num_free_extents(et); in ocfs2_lock_refcount_allocators() local2848 if (num_free_extents < 0) { in ocfs2_lock_refcount_allocators()2849 ret = num_free_extents; in ocfs2_lock_refcount_allocators()2854 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
6752 int ret, num_free_extents; in ocfs2_lock_reflink_xattr_rec_allocators() local6793 num_free_extents = ocfs2_num_free_extents(xt_et); in ocfs2_lock_reflink_xattr_rec_allocators()6794 if (num_free_extents < 0) { in ocfs2_lock_reflink_xattr_rec_allocators()6795 ret = num_free_extents; in ocfs2_lock_reflink_xattr_rec_allocators()6800 if (num_free_extents < len) in ocfs2_lock_reflink_xattr_rec_allocators()