lkml.org 
[lkml]   [2002]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] vmacct4/9 mmap MAP_NORESERVE not in vm_flags
do_mmap_pgoff clears MAP_NORESERVE from vm_flags when VM accounts
strictly: but it's not in vm_flags, it's in flags (and tested there).

--- vmacct3/mm/mmap.c Mon Jul 29 11:48:04 2002
+++ vmacct4/mm/mmap.c Mon Jul 29 19:23:46 2002
@@ -535,7 +535,7 @@
return -ENOMEM;

if (sysctl_overcommit_memory > 1)
- vm_flags &= ~MAP_NORESERVE;
+ flags &= ~MAP_NORESERVE;

/* Private writable mapping? Check memory availability.. */
if ((((vm_flags & (VM_SHARED | VM_WRITE)) == VM_WRITE) ||
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.073 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site