On Mon, Apr 17, 2017 at 02:08:08PM -0400, Brian Foster wrote: > This seems Ok, but I don't think it's very elegant to have callers pass > a total parameter along with a flag to ignore it. Couldn't we just set > minleft when total is not used and pass zero from those particular > callers, or do we actually need to support the !BESTEFFORT && total == 0 > case? We could do that, in in context of just this patch it would even seem cleaner. But for the next merge window I have changes queued up that remove the total parameter and it's passing along the dir/da_btree code entirely by looking at the transaction reservation for the !BESTEFFORT case, which I thikn is even better as a grand scheme. > (At the very least, we could assert that total == 0 when > BESTEFFORT is set.) Sure. -- 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