diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-06-09 12:47:49 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-08 12:32:51 -0400 |
commit | 81463b1ca8dbd2f4f180feac3f49c7640e2b5f79 (patch) | |
tree | 09d7f0c19d83e1362cea84339bbd2417518029dd /fs/xfs/xfs_alloc.c | |
parent | c0e090ced259b85b854636c99dda95b7070a2785 (diff) |
xfs: remove variables that serve no purpose in xfs_alloc_ag_vextent_exact()
Remove two variables that serve no purpose in
xfs_alloc_ag_vextent_exact().
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/xfs_alloc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index 3ad3ab9f56cb..1e00b3ef6274 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c | |||
@@ -570,9 +570,7 @@ xfs_alloc_ag_vextent_exact( | |||
570 | xfs_agblock_t tbno; /* start block of trimmed extent */ | 570 | xfs_agblock_t tbno; /* start block of trimmed extent */ |
571 | xfs_extlen_t tlen; /* length of trimmed extent */ | 571 | xfs_extlen_t tlen; /* length of trimmed extent */ |
572 | xfs_agblock_t tend; /* end block of trimmed extent */ | 572 | xfs_agblock_t tend; /* end block of trimmed extent */ |
573 | xfs_agblock_t end; /* end of allocated extent */ | ||
574 | int i; /* success/failure of operation */ | 573 | int i; /* success/failure of operation */ |
575 | xfs_extlen_t rlen; /* length of returned extent */ | ||
576 | 574 | ||
577 | ASSERT(args->alignment == 1); | 575 | ASSERT(args->alignment == 1); |
578 | 576 | ||
@@ -625,18 +623,16 @@ xfs_alloc_ag_vextent_exact( | |||
625 | * | 623 | * |
626 | * Fix the length according to mod and prod if given. | 624 | * Fix the length according to mod and prod if given. |
627 | */ | 625 | */ |
628 | end = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen); | 626 | args->len = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen) |
629 | args->len = end - args->agbno; | 627 | - args->agbno; |
630 | xfs_alloc_fix_len(args); | 628 | xfs_alloc_fix_len(args); |
631 | if (!xfs_alloc_fix_minleft(args)) | 629 | if (!xfs_alloc_fix_minleft(args)) |
632 | goto not_found; | 630 | goto not_found; |
633 | 631 | ||
634 | rlen = args->len; | 632 | ASSERT(args->agbno + args->len <= tend); |
635 | ASSERT(args->agbno + rlen <= tend); | ||
636 | end = args->agbno + rlen; | ||
637 | 633 | ||
638 | /* | 634 | /* |
639 | * We are allocating agbno for rlen [agbno .. end] | 635 | * We are allocating agbno for args->len |
640 | * Allocate/initialize a cursor for the by-size btree. | 636 | * Allocate/initialize a cursor for the by-size btree. |
641 | */ | 637 | */ |
642 | cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, | 638 | cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, |