diff options
author | David Chinner <dgc@sgi.com> | 2008-04-17 02:49:49 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-17 22:03:02 -0400 |
commit | e6430037e9fd0b3d02ceaf5ab99bfe3ccb763be7 (patch) | |
tree | 82af4af56d4469ef8fef545921c560b765ff036f /fs/xfs/xfs_alloc.c | |
parent | d4055947bd0913864f4d8ac96bf1197338071622 (diff) |
[XFS] fix logic error in xfs_alloc_ag_vextent_near()
Fix a logic error in xfs_alloc_ag_vextent_near(). This is a regression
introduced by the error handling changes.
SGI-PV: 890084
SGI-Modid: xfs-linux-melb:xfs-kern:30838a
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Barry Naujok <bnaujok@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/xfs_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_alloc.c b/fs/xfs/xfs_alloc.c index facdae14edd0..1956f83489f1 100644 --- a/fs/xfs/xfs_alloc.c +++ b/fs/xfs/xfs_alloc.c | |||
@@ -838,7 +838,7 @@ xfs_alloc_ag_vextent_near( | |||
838 | XFS_WANT_CORRUPTED_GOTO(i == 1, error0); | 838 | XFS_WANT_CORRUPTED_GOTO(i == 1, error0); |
839 | xfs_alloc_compute_aligned(ltbno, ltlen, args->alignment, | 839 | xfs_alloc_compute_aligned(ltbno, ltlen, args->alignment, |
840 | args->minlen, <bnoa, <lena); | 840 | args->minlen, <bnoa, <lena); |
841 | if (ltlena >= args->minlen) | 841 | if (ltlena < args->minlen) |
842 | continue; | 842 | continue; |
843 | args->len = XFS_EXTLEN_MIN(ltlena, args->maxlen); | 843 | args->len = XFS_EXTLEN_MIN(ltlena, args->maxlen); |
844 | xfs_alloc_fix_len(args); | 844 | xfs_alloc_fix_len(args); |