Non-anonymous allocations with this flag set should - for the purpose
of the availability check - be treated just like anonymous ones, as
they wouldn't lead to a reduction of ->outstanding_pages.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
*/
if ( (outstanding_claims + request >
total_avail_pages + tmem_freeable_pages()) &&
- (d == NULL || d->outstanding_pages < request) )
+ ((memflags & MEMF_no_refcount) ||
+ !d || d->outstanding_pages < request) )
goto not_found;
/*