Re: [PATCH 09/11] xfs: rework splitting of indirect block reservations

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

 



On Mon, Mar 25, 2024 at 04:55:43PM -0700, Darrick J. Wong wrote:
> > +		/*
> > +		 * Steal as many blocks as we can to try and satisfy the worst
> > +		 * case indlen for both new extents.
> > +		 */
> > +		da_new = got_indlen + new_indlen;
> > +		if (da_new > da_old) {
> > +			stolen = XFS_FILBLKS_MIN(da_new - da_old,
> > +						 new.br_blockcount);
> 
> Huh.  We used to pass del->blockcount as one of the constraints on the
> stolen block count.  Why pass new.br_blockcount instead?

.. we probably shouldn't.  Let me take another closer look.





[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