• Home
  • Raw
  • Download

Lines Matching refs:range

44 	struct ocfs2_move_extents *range;  member
307 context->range->me_flags &= ~OCFS2_MOVE_EXT_FL_COMPLETE; in ocfs2_defrag_extent()
478 struct ocfs2_move_extents *range) in ocfs2_validate_and_adjust_move_goal() argument
491 range->me_goal = ocfs2_block_to_cluster_start(inode->i_sb, in ocfs2_validate_and_adjust_move_goal()
492 range->me_goal); in ocfs2_validate_and_adjust_move_goal()
497 ret = ocfs2_find_victim_alloc_group(inode, range->me_goal, in ocfs2_validate_and_adjust_move_goal()
510 if (range->me_goal == le64_to_cpu(bg->bg_blkno)) in ocfs2_validate_and_adjust_move_goal()
511 range->me_goal += c_to_b; in ocfs2_validate_and_adjust_move_goal()
517 range->me_len) { in ocfs2_validate_and_adjust_move_goal()
526 range->me_goal); in ocfs2_validate_and_adjust_move_goal()
588 context->range->me_threshold); in ocfs2_move_extent()
778 struct ocfs2_move_extents *range = context->range; in __ocfs2_move_extents_range() local
781 if ((i_size_read(inode) == 0) || (range->me_len == 0)) in __ocfs2_move_extents_range()
805 move_start = ocfs2_clusters_for_bytes(osb->sb, range->me_start); in __ocfs2_move_extents_range()
806 len_to_move = (range->me_start + range->me_len) >> in __ocfs2_move_extents_range()
814 defrag_thresh = range->me_threshold >> osb->s_clustersize_bits; in __ocfs2_move_extents_range()
819 range->me_goal); in __ocfs2_move_extents_range()
824 (unsigned long long)range->me_start, in __ocfs2_move_extents_range()
825 (unsigned long long)range->me_len, in __ocfs2_move_extents_range()
890 range->me_flags |= OCFS2_MOVE_EXT_FL_COMPLETE; in __ocfs2_move_extents_range()
893 range->me_moved_len = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
895 range->me_new_offset = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
990 struct ocfs2_move_extents range; in ocfs2_ioctl_move_extents() local
1020 if (copy_from_user(&range, argp, sizeof(range))) { in ocfs2_ioctl_move_extents()
1025 if (range.me_start > i_size_read(inode)) { in ocfs2_ioctl_move_extents()
1030 if (range.me_start + range.me_len > i_size_read(inode)) in ocfs2_ioctl_move_extents()
1031 range.me_len = i_size_read(inode) - range.me_start; in ocfs2_ioctl_move_extents()
1033 context->range = ⦥ in ocfs2_ioctl_move_extents()
1035 if (range.me_flags & OCFS2_MOVE_EXT_FL_AUTO_DEFRAG) { in ocfs2_ioctl_move_extents()
1042 if (!range.me_threshold) in ocfs2_ioctl_move_extents()
1043 range.me_threshold = 1024 * 1024; in ocfs2_ioctl_move_extents()
1045 if (range.me_threshold > i_size_read(inode)) in ocfs2_ioctl_move_extents()
1046 range.me_threshold = i_size_read(inode); in ocfs2_ioctl_move_extents()
1048 if (range.me_flags & OCFS2_MOVE_EXT_FL_PART_DEFRAG) in ocfs2_ioctl_move_extents()
1058 status = ocfs2_validate_and_adjust_move_goal(inode, &range); in ocfs2_ioctl_move_extents()
1072 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl_move_extents()