Message ID | 20241111214338.GE9438@frogsfrogsfrogs (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | xfs: Reduce unnecessary searches when searching for the best extents | expand |
diff --git a/libxfs/xfs_alloc.c b/libxfs/xfs_alloc.c index 61453709ae515c..f0635b17f18548 100644 --- a/libxfs/xfs_alloc.c +++ b/libxfs/xfs_alloc.c @@ -1919,7 +1919,7 @@ xfs_alloc_ag_vextent_size( error = -EFSCORRUPTED; goto error0; } - if (flen < bestrlen) + if (flen <= bestrlen) break; busy = xfs_alloc_compute_aligned(args, fbno, flen, &rbno, &rlen, &busy_gen);