Commit 81463b1c authored by Chandra Seetharaman's avatar Chandra Seetharaman Committed by Alex Elder

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: default avatarChandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
parent c0e090ce
...@@ -570,9 +570,7 @@ xfs_alloc_ag_vextent_exact( ...@@ -570,9 +570,7 @@ xfs_alloc_ag_vextent_exact(
xfs_agblock_t tbno; /* start block of trimmed extent */ xfs_agblock_t tbno; /* start block of trimmed extent */
xfs_extlen_t tlen; /* length of trimmed extent */ xfs_extlen_t tlen; /* length of trimmed extent */
xfs_agblock_t tend; /* end block of trimmed extent */ xfs_agblock_t tend; /* end block of trimmed extent */
xfs_agblock_t end; /* end of allocated extent */
int i; /* success/failure of operation */ int i; /* success/failure of operation */
xfs_extlen_t rlen; /* length of returned extent */
ASSERT(args->alignment == 1); ASSERT(args->alignment == 1);
...@@ -625,18 +623,16 @@ xfs_alloc_ag_vextent_exact( ...@@ -625,18 +623,16 @@ xfs_alloc_ag_vextent_exact(
* *
* Fix the length according to mod and prod if given. * Fix the length according to mod and prod if given.
*/ */
end = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen); args->len = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen)
args->len = end - args->agbno; - args->agbno;
xfs_alloc_fix_len(args); xfs_alloc_fix_len(args);
if (!xfs_alloc_fix_minleft(args)) if (!xfs_alloc_fix_minleft(args))
goto not_found; goto not_found;
rlen = args->len; ASSERT(args->agbno + args->len <= tend);
ASSERT(args->agbno + rlen <= tend);
end = args->agbno + rlen;
/* /*
* We are allocating agbno for rlen [agbno .. end] * We are allocating agbno for args->len
* Allocate/initialize a cursor for the by-size btree. * Allocate/initialize a cursor for the by-size btree.
*/ */
cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment