Lines Matching refs:diff
328 xfs_extlen_t diff; in xfs_alloc_compute_aligned() local
340 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
341 if (len > diff) { in xfs_alloc_compute_aligned()
342 bno += diff; in xfs_alloc_compute_aligned()
343 len -= diff; in xfs_alloc_compute_aligned()
350 diff = aligned_bno - bno; in xfs_alloc_compute_aligned()
353 *reslen = diff >= len ? 0 : len - diff; in xfs_alloc_compute_aligned()
931 xfs_extlen_t diff; /* diff from search bno */ member
954 acur->diff = -1; in xfs_alloc_cur_setup()
1016 xfs_extlen_t len, lena, diff = -1; in xfs_alloc_cur_check() local
1064 diff = xfs_alloc_compute_diff(args->agbno, args->len, in xfs_alloc_cur_check()
1073 if (diff > acur->diff) { in xfs_alloc_cur_check()
1079 (args->len == acur->len && diff <= acur->diff)); in xfs_alloc_cur_check()
1084 acur->diff = diff; in xfs_alloc_cur_check()
1092 if (acur->diff == 0 && acur->len == args->maxlen) in xfs_alloc_cur_check()
1097 trace_xfs_alloc_cur_check(cur, bno, len, diff, *new); in xfs_alloc_cur_check()