This is totally based on the discussion between Brian, Dave and me regarding the issues we have on the allocation mechanism, and this patchset is just used to put the ideas together. Dave, this is a small improvement based on your hack on your original patch, to 'fix' the total number. And based on my last reply to the thread It still does need improvement, and I need to check the math, but I think we should maybe start here. I just removed the hack from your patch, and moved the args.total fix to the 2nd patch. What you guys think about it? Carlos Maiolino (1): xfs: Limit total allocation request to maximum possible Dave Chinner (1): xfs: cap longest free extent to maximum allocatable fs/xfs/libxfs/xfs_alloc.c | 3 ++- fs/xfs/libxfs/xfs_bmap.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.20.1