| To: | xfs-dev <xfs-dev@xxxxxxx> |
|---|---|
| Subject: | [patch] fix logic error in xfs_alloc_ag_vextent_near() |
| From: | David Chinner <dgc@xxxxxxx> |
| Date: | Thu, 10 Apr 2008 13:25:55 +1000 |
| Cc: | xfs-oss <xfs@xxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.1i |
Fix a logic error in xfs_alloc_ag_vextent_near(). This is
a regression introduced by the error handling changes.
Signed-off-by: Dave Chinner <dgc@xxxxxxx>
---
fs/xfs/xfs_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6.x-xfs-new/fs/xfs/xfs_alloc.c
===================================================================
--- 2.6.x-xfs-new.orig/fs/xfs/xfs_alloc.c 2008-04-10 10:00:50.000000000
+1000
+++ 2.6.x-xfs-new/fs/xfs/xfs_alloc.c 2008-04-10 13:10:17.948126881 +1000
@@ -838,7 +838,7 @@ xfs_alloc_ag_vextent_near(
XFS_WANT_CORRUPTED_GOTO(i == 1, error0);
xfs_alloc_compute_aligned(ltbno, ltlen, args->alignment,
args->minlen, <bnoa, <lena);
- if (ltlena >= args->minlen)
+ if (ltlena < args->minlen)
continue;
args->len = XFS_EXTLEN_MIN(ltlena, args->maxlen);
xfs_alloc_fix_len(args);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | PARTIAL TAKE 980084 - Don't error out on good I/Os in xfsbdstrat, David Chinner |
|---|---|
| Next by Date: | PARTIAL TAKE 976035 - cleanup: refactor xfs_dir2_leafn_lookup_int(), Barry Naujok |
| Previous by Thread: | PARTIAL TAKE 980084 - Don't error out on good I/Os in xfsbdstrat, David Chinner |
| Next by Thread: | Re: [patch] fix logic error in xfs_alloc_ag_vextent_near(), Barry Naujok |
| Indexes: | [Date] [Thread] [Top] [All Lists] |