On Sat, Jun 18, 2022 at 06:35:17AM +0100, Al Viro wrote: > + *npages = max(used - (int)pipe->max_usage, 0); *npages = max((int)pipe->max_usage - used, 0); > if (off > 0 && off < PAGE_SIZE) { // anon and not full
On Sat, Jun 18, 2022 at 06:35:17AM +0100, Al Viro wrote: > + *npages = max(used - (int)pipe->max_usage, 0); *npages = max((int)pipe->max_usage - used, 0); > if (off > 0 && off < PAGE_SIZE) { // anon and not full