• Home
  • Raw
  • Download

Lines Matching refs:range

44 	struct ocfs2_move_extents *range;  member
297 context->range->me_flags &= ~OCFS2_MOVE_EXT_FL_COMPLETE; in ocfs2_defrag_extent()
468 struct ocfs2_move_extents *range) in ocfs2_validate_and_adjust_move_goal() argument
481 range->me_goal = ocfs2_block_to_cluster_start(inode->i_sb, in ocfs2_validate_and_adjust_move_goal()
482 range->me_goal); in ocfs2_validate_and_adjust_move_goal()
487 ret = ocfs2_find_victim_alloc_group(inode, range->me_goal, in ocfs2_validate_and_adjust_move_goal()
500 if (range->me_goal == le64_to_cpu(bg->bg_blkno)) in ocfs2_validate_and_adjust_move_goal()
501 range->me_goal += c_to_b; in ocfs2_validate_and_adjust_move_goal()
507 range->me_len) { in ocfs2_validate_and_adjust_move_goal()
516 range->me_goal); in ocfs2_validate_and_adjust_move_goal()
579 context->range->me_threshold); in ocfs2_move_extent()
769 struct ocfs2_move_extents *range = context->range; in __ocfs2_move_extents_range() local
772 if ((i_size_read(inode) == 0) || (range->me_len == 0)) in __ocfs2_move_extents_range()
796 move_start = ocfs2_clusters_for_bytes(osb->sb, range->me_start); in __ocfs2_move_extents_range()
797 len_to_move = (range->me_start + range->me_len) >> in __ocfs2_move_extents_range()
805 defrag_thresh = range->me_threshold >> osb->s_clustersize_bits; in __ocfs2_move_extents_range()
810 range->me_goal); in __ocfs2_move_extents_range()
815 (unsigned long long)range->me_start, in __ocfs2_move_extents_range()
816 (unsigned long long)range->me_len, in __ocfs2_move_extents_range()
881 range->me_flags |= OCFS2_MOVE_EXT_FL_COMPLETE; in __ocfs2_move_extents_range()
884 range->me_moved_len = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
886 range->me_new_offset = ocfs2_clusters_to_bytes(osb->sb, in __ocfs2_move_extents_range()
981 struct ocfs2_move_extents range; in ocfs2_ioctl_move_extents() local
1011 if (copy_from_user(&range, argp, sizeof(range))) { in ocfs2_ioctl_move_extents()
1016 if (range.me_start > i_size_read(inode)) { in ocfs2_ioctl_move_extents()
1021 if (range.me_start + range.me_len > i_size_read(inode)) in ocfs2_ioctl_move_extents()
1022 range.me_len = i_size_read(inode) - range.me_start; in ocfs2_ioctl_move_extents()
1024 context->range = ⦥ in ocfs2_ioctl_move_extents()
1031 if (!range.me_threshold) in ocfs2_ioctl_move_extents()
1032 range.me_threshold = 1024 * 1024; in ocfs2_ioctl_move_extents()
1034 if (range.me_threshold > i_size_read(inode)) in ocfs2_ioctl_move_extents()
1035 range.me_threshold = i_size_read(inode); in ocfs2_ioctl_move_extents()
1037 if (range.me_flags & OCFS2_MOVE_EXT_FL_AUTO_DEFRAG) { in ocfs2_ioctl_move_extents()
1040 if (range.me_flags & OCFS2_MOVE_EXT_FL_PART_DEFRAG) in ocfs2_ioctl_move_extents()
1050 status = ocfs2_validate_and_adjust_move_goal(inode, &range); in ocfs2_ioctl_move_extents()
1064 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl_move_extents()