On Mon, Apr 17, 2017 at 10:19:39AM -0400, Brian Foster wrote: > On Thu, Apr 13, 2017 at 10:05:13AM +0200, Christoph Hellwig wrote: > > We need to set a proper minleft value even if we didn't do a previous > > allocation in the transaction, as we can't switch to a different AG > > after allocating the data extent. > > > > Hmm, the code currently does set minleft if we haven't done a previous > allocation (firstblock == NULLFSBLOCK). Do you mean "even if we have > done a previous allocation?" Yeah. > The code seems Ok, but we also currently reserve enough blocks for a > full btree split in a write transaction and afaict only allocate a > single extent per-transaction. The current code expects to select an AG > with those additional blocks available and then not if a subsequent > allocation occurs (by setting minleft = 0), presumably because the check > was already made. So I'm wondering if this fixes a problem that has been > observed or is just cleaning up the code..? It's fixing a problem that is currently masked by the low space allocator. Once we remove that just try again without reservations for good luck mode we need to get all the reservations right. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html