diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-06-09 16:47:49 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-08 11:32:51 -0500 |
commit | 81463b1ca8dbd2f4f180feac3f49c7640e2b5f79 (patch) | |
tree | 09d7f0c19d83e1362cea84339bbd2417518029dd /fs/xfs/xfs_alloc.c | |
parent | c0e090ced259b85b854636c99dda95b7070a2785 (diff) | |
download | linux-rpi3-81463b1ca8dbd2f4f180feac3f49c7640e2b5f79.tar.gz linux-rpi3-81463b1ca8dbd2f4f180feac3f49c7640e2b5f79.tar.bz2 linux-rpi3-81463b1ca8dbd2f4f180feac3f49c7640e2b5f79.zip |
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( xfs_agblock_t tbno; /* start block of trimmed extent */ xfs_extlen_t tlen; /* length 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 */ - xfs_extlen_t rlen; /* length of returned extent */ ASSERT(args->alignment == 1); @@ -625,18 +623,16 @@ xfs_alloc_ag_vextent_exact( * * Fix the length according to mod and prod if given. */ - end = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen); - args->len = end - args->agbno; + args->len = XFS_AGBLOCK_MIN(tend, args->agbno + args->maxlen) + - args->agbno; xfs_alloc_fix_len(args); if (!xfs_alloc_fix_minleft(args)) goto not_found; - rlen = args->len; - ASSERT(args->agbno + rlen <= tend); - end = args->agbno + rlen; + ASSERT(args->agbno + args->len <= tend); /* - * We are allocating agbno for rlen [agbno .. end] + * We are allocating agbno for args->len * Allocate/initialize a cursor for the by-size btree. */ cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, |