Allowing small allocations to fail
Allowing small allocations to fail
Posted Mar 11, 2015 10:24 UTC (Wed) by andresfreund (subscriber, #69562)Parent article: Allowing small allocations to fail
> Peter Zijlstra observed that ENOMEM is a valid return from a system call.
FWIW, that's not generally true. E.g. close() is not documented to return ENOMEM and afaics could end up returning ENOMEM under the new regimen (close => __close_fd => filp_close => f_op->flush).