diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-04-29 06:41:10 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-05-14 17:20:56 -0400 |
commit | 4ecbfe637cbcc0f093d1f295ef483f4e31e3987b (patch) | |
tree | 38faf345e1e43b85105dbfc7f6b3b4e7409f0cfb /fs/xfs/xfs_alloc.c | |
parent | efc27b52594e322d4c94e379489fa3690bf74739 (diff) |
xfs: clean up busy extent naming
Now that the busy extent tracking has been moved out of the
allocation files, clean up the namespace it uses to
"xfs_extent_busy" rather than a mix of "xfs_busy" and
"xfs_alloc_busy".
Signed-off-by: Dave Chinner<dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/xfs_alloc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index ae6df2585895..588496de0f93 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c | |||
@@ -47,7 +47,7 @@ STATIC int xfs_alloc_ag_vextent_near(xfs_alloc_arg_t *); | |||
47 | STATIC int xfs_alloc_ag_vextent_size(xfs_alloc_arg_t *); | 47 | STATIC int xfs_alloc_ag_vextent_size(xfs_alloc_arg_t *); |
48 | STATIC int xfs_alloc_ag_vextent_small(xfs_alloc_arg_t *, | 48 | STATIC int xfs_alloc_ag_vextent_small(xfs_alloc_arg_t *, |
49 | xfs_btree_cur_t *, xfs_agblock_t *, xfs_extlen_t *, int *); | 49 | xfs_btree_cur_t *, xfs_agblock_t *, xfs_extlen_t *, int *); |
50 | STATIC void xfs_alloc_busy_trim(struct xfs_alloc_arg *, | 50 | STATIC void xfs_extent_busy_trim(struct xfs_alloc_arg *, |
51 | xfs_agblock_t, xfs_extlen_t, xfs_agblock_t *, xfs_extlen_t *); | 51 | xfs_agblock_t, xfs_extlen_t, xfs_agblock_t *, xfs_extlen_t *); |
52 | 52 | ||
53 | /* | 53 | /* |
@@ -152,7 +152,7 @@ xfs_alloc_compute_aligned( | |||
152 | xfs_extlen_t len; | 152 | xfs_extlen_t len; |
153 | 153 | ||
154 | /* Trim busy sections out of found extent */ | 154 | /* Trim busy sections out of found extent */ |
155 | xfs_alloc_busy_trim(args, foundbno, foundlen, &bno, &len); | 155 | xfs_extent_busy_trim(args, foundbno, foundlen, &bno, &len); |
156 | 156 | ||
157 | if (args->alignment > 1 && len >= args->minlen) { | 157 | if (args->alignment > 1 && len >= args->minlen) { |
158 | xfs_agblock_t aligned_bno = roundup(bno, args->alignment); | 158 | xfs_agblock_t aligned_bno = roundup(bno, args->alignment); |
@@ -536,7 +536,7 @@ xfs_alloc_ag_vextent( | |||
536 | if (error) | 536 | if (error) |
537 | return error; | 537 | return error; |
538 | 538 | ||
539 | ASSERT(!xfs_alloc_busy_search(args->mp, args->agno, | 539 | ASSERT(!xfs_extent_busy_search(args->mp, args->agno, |
540 | args->agbno, args->len)); | 540 | args->agbno, args->len)); |
541 | } | 541 | } |
542 | 542 | ||
@@ -603,7 +603,7 @@ xfs_alloc_ag_vextent_exact( | |||
603 | /* | 603 | /* |
604 | * Check for overlapping busy extents. | 604 | * Check for overlapping busy extents. |
605 | */ | 605 | */ |
606 | xfs_alloc_busy_trim(args, fbno, flen, &tbno, &tlen); | 606 | xfs_extent_busy_trim(args, fbno, flen, &tbno, &tlen); |
607 | 607 | ||
608 | /* | 608 | /* |
609 | * Give up if the start of the extent is busy, or the freespace isn't | 609 | * Give up if the start of the extent is busy, or the freespace isn't |
@@ -1391,7 +1391,7 @@ xfs_alloc_ag_vextent_small( | |||
1391 | if (error) | 1391 | if (error) |
1392 | goto error0; | 1392 | goto error0; |
1393 | if (fbno != NULLAGBLOCK) { | 1393 | if (fbno != NULLAGBLOCK) { |
1394 | xfs_alloc_busy_reuse(args->mp, args->agno, fbno, 1, | 1394 | xfs_extent_busy_reuse(args->mp, args->agno, fbno, 1, |
1395 | args->userdata); | 1395 | args->userdata); |
1396 | 1396 | ||
1397 | if (args->userdata) { | 1397 | if (args->userdata) { |
@@ -2496,7 +2496,7 @@ xfs_free_extent( | |||
2496 | 2496 | ||
2497 | error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); | 2497 | error = xfs_free_ag_extent(tp, args.agbp, args.agno, args.agbno, len, 0); |
2498 | if (!error) | 2498 | if (!error) |
2499 | xfs_alloc_busy_insert(tp, args.agno, args.agbno, len, 0); | 2499 | xfs_extent_busy_insert(tp, args.agno, args.agbno, len, 0); |
2500 | error0: | 2500 | error0: |
2501 | xfs_perag_put(args.pag); | 2501 | xfs_perag_put(args.pag); |
2502 | return error; | 2502 | return error; |