Re: [PATCH 3/9] xfs: select the AG with the largest contiguous space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 05, 2023 at 02:46:18AM -0700, Christoph Hellwig wrote:
> On Wed, Oct 04, 2023 at 11:19:37AM +1100, Dave Chinner wrote:
> > +	if (max_blen > *blen) {
> > +		if (max_blen_agno != startag) {
> > +			ap->blkno = XFS_AGB_TO_FSB(mp, max_blen_agno, 0);
> > +			ap->aeof = false;
> > +		}
> > +		*blen = max_blen;
> > +	}
> 
> A comment explaining that we at least want the longest freespace
> if no perfect match is available here would be useful to future
> readers.

With Christoph's request for an extra comment added,
Reviewed-by: Darrick J. Wong <djwong@xxxxxxxxxx>

--D

> 
> Otherwise looks good:
> 
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> 



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux