Lines Matching refs:osb

56 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);  in __ocfs2_move_extent()  local
134 ocfs2_blocks_to_clusters(osb->sb, in __ocfs2_move_extent()
139 ret = ocfs2_truncate_log_append(osb, handle, in __ocfs2_move_extent()
163 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_lock_meta_allocator_move_extents() local
173 (ocfs2_sparse_alloc(osb) && num_free_extents < max_recs_needed)) in ocfs2_lock_meta_allocator_move_extents()
176 ret = ocfs2_reserve_new_metadata_blocks(osb, extra_blocks, meta_ac); in ocfs2_lock_meta_allocator_move_extents()
183 *credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el); in ocfs2_lock_meta_allocator_move_extents()
211 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_defrag_extent() local
212 struct inode *tl_inode = osb->osb_tl_inode; in ocfs2_defrag_extent()
222 ret = ocfs2_lock_refcount_tree(osb, context->refcount_loc, 1, in ocfs2_defrag_extent()
259 if (ocfs2_truncate_log_needs_flush(osb)) { in ocfs2_defrag_extent()
260 ret = __ocfs2_flush_truncate_log(osb); in ocfs2_defrag_extent()
276 ret = ocfs2_reserve_clusters(osb, *len, &context->data_ac); in ocfs2_defrag_extent()
282 handle = ocfs2_start_trans(osb, credits); in ocfs2_defrag_extent()
336 ocfs2_free_local_alloc_bits(osb, handle, data_ac, in ocfs2_defrag_extent()
342 ocfs2_clusters_to_blocks(osb->sb, new_phys_cpos), in ocfs2_defrag_extent()
346 ocfs2_commit_trans(osb, handle); in ocfs2_defrag_extent()
363 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_defrag_extent()
381 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_find_victim_alloc_group() local
389 ret = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, in ocfs2_find_victim_alloc_group()
396 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &ac_bh); in ocfs2_find_victim_alloc_group()
407 bits_per_unit = osb->s_clustersize_bits - in ocfs2_find_victim_alloc_group()
438 ret = ocfs2_read_blocks_sync(osb, blkno, 1, &gd_bh); in ocfs2_find_victim_alloc_group()
482 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_validate_and_adjust_move_goal() local
483 int c_to_b = 1 << (osb->s_clustersize_bits - in ocfs2_validate_and_adjust_move_goal()
514 if ((le16_to_cpu(bg->bg_bits) - goal_bit) * osb->s_clustersize < in ocfs2_validate_and_adjust_move_goal()
578 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extent() local
579 struct inode *tl_inode = osb->osb_tl_inode; in ocfs2_move_extent()
595 ret = ocfs2_lock_refcount_tree(osb, context->refcount_loc, 1, in ocfs2_move_extent()
633 gb_inode = ocfs2_get_system_file_inode(osb, GLOBAL_BITMAP_SYSTEM_INODE, in ocfs2_move_extent()
651 handle = ocfs2_start_trans(osb, credits); in ocfs2_move_extent()
713 ocfs2_commit_trans(osb, handle); in ocfs2_move_extent()
732 ocfs2_unlock_refcount_tree(osb, ref_tree, 1); in ocfs2_move_extent()
777 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in __ocfs2_move_extents_range() local
803 move_start = ocfs2_clusters_for_bytes(osb->sb, range->me_start); in __ocfs2_move_extents_range()
805 osb->s_clustersize_bits; in __ocfs2_move_extents_range()
812 defrag_thresh = range->me_threshold >> osb->s_clustersize_bits; in __ocfs2_move_extents_range()
891 range->me_moved_len = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
893 range->me_new_offset = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
896 ocfs2_schedule_truncate_log_flush(osb, 1); in __ocfs2_move_extents_range()
897 ocfs2_run_deallocs(osb, &context->dealloc); in __ocfs2_move_extents_range()
909 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_move_extents() local
911 if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb)) in ocfs2_move_extents()
947 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); in ocfs2_move_extents()
970 ocfs2_commit_trans(osb, handle); in ocfs2_move_extents()