In my original v1 patch I did update init->cap, I must have overlooked it. I will resubmit the patch with that change once I hear back from you about the enforcement.
I seem to recall the if the requested max can't be satisified then
that is an EINVAL?
And the init->cap should be updated with the actual allocation.
Since the user request for both (sge's and inline data) has been satisfied I decided not to update the values in case the return values are being checked. If you prefer that I update the values I can do that.
Shoaib