About this list Date view Thread view Subject view Author view Attachment view

From: Enrico Scholz (enrico.scholz_at_sigma-chemnitz.de)
Date: Fri 08 Jul 2005 - 10:32:03 BST


enrico.scholz_at_sigma-chemnitz.de (Enrico Scholz) writes:

> | $ diet gcc x.c
> | $ strace ./a.out
> | execve("./a.out", ["./a.out"], [/* 41 vars */]) = 0
> | old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x97f47000
> | mremap(0x97f47000, 4096, 8192, MREMAP_MAYMOVE) = -1 ENOMEM (Cannot allocate memory)
> ~~~~~~~~~

Is the

| @@ -351,8 +352,13 @@ unsigned long do_mremap(unsigned long ad
| ...
| }
| - if (!may_expand_vm(current->mm, (new_len - old_len) >> PAGE_SHIFT)) {
| + if (!may_expand_vm(current->mm, (new_len - old_len) >> PAGE_SHIFT) ||
| + vx_vmpages_avail(current->mm, (new_len - old_len) >> PAGE_SHIFT)) {
| ret = -ENOMEM;

hunk really correct, or is there missing a '!' before 'vx_vmpages_avail'?

Enrico


_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 08 Jul 2005 - 10:32:29 BST by hypermail 2.1.3