Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
xen.612
54ef188e-honor-MEMF_no_refcount-in-alloc_heap_p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 54ef188e-honor-MEMF_no_refcount-in-alloc_heap_pages.patch of Package xen.612
# Commit 17294e69c4cd299da7ba3ca8077e24be76bd61b1 # Date 2015-02-26 13:58:54 +0100 # Author Jan Beulich <jbeulich@suse.com> # Committer Jan Beulich <jbeulich@suse.com> honor MEMF_no_refcount in alloc_heap_pages() 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> --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -600,7 +600,8 @@ static struct page_info *alloc_heap_page */ 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; /*
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor