On Tue, Apr 22, 2025 at 08:01:37AM +0200, hch wrote: > On Mon, Apr 21, 2025 at 10:57:31PM -0700, Guenter Roeck wrote: > >> free should be floored to zero, i.e. > >> > >> free = min(0, xfs_estimate_freecounter(mp, XC_FREE_RTEXTENTS)); > >> > > > > Do you mean max, maybe ? > > Yes, sorry. > > Also if you want the work taken off your hands I can prepare a patch > as well, I just don't want to do that without approval from the > original author. Just noticed it, I shouldn't read emails backwards on time :) I had the same thoughts as hch though. But giving Guenter's last message... hch, do you want to write a patch for that or should I? btw, Guenter, I still plan to work on a generic mult_frac() to properly fix this. Could you please share a reproducer for your case so I can test it on the same architectures you're doing so? Hopefully it can be cross compiled?