Skip to contentSkip to conversation

kanoj-mm4.0-2.2.9 Free up VM_GROWSUP for new use

PATCH New Kanoj Sarcar 1 participant 1 message May 31, 1999

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kanoj-mm4.0-2.2.9 Free up VM_GROWSUP for new use

It seems to me that the flag bit VM_GROWSUP is not set anywhere. Seeing that the vm_flags bits are nearly all taken, it is probably worthwhile to free up this bit for new usage. Here's the patch to do that.

Thanks.

Kanoj
[email protected]

irixelf.c1 renamed from mips/kernel/irixelf.c +1 -1
@@ -1050,7 +1050,7 @@
 	if (!(vma->vm_flags & (VM_READ|VM_WRITE|VM_EXEC)))
 		return 0;
 #if 1
-	if (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
+	if (vma->vm_flags & (VM_WRITE|VM_GROWSDOWN))
 		return 1;
 	if (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
 		return 0;
binfmt_elf.c1 renamed from binfmt_elf.c +1 -1
@@ -960,7 +960,7 @@
 	if(vma->vm_flags & VM_IO)
 		return 0;
 #if 1
-	if (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
+	if (vma->vm_flags & (VM_WRITE|VM_GROWSDOWN))
 		return 1;
 	if (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
 		return 0;
mm.h1 renamed from mm.h +1 -1
@@ -73,7 +73,7 @@
 #define VM_MAYSHARE	0x0080
 
 #define VM_GROWSDOWN	0x0100	/* general info on the segment */
-#define VM_GROWSUP	0x0200
+#define VM_notused	0x0200	/* this flagbit free for any use */
 #define VM_SHM		0x0400	/* shared memory area, don't swap out */
 #define VM_DENYWRITE	0x0800	/* ETXTBSY on write attempts.. */
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address' in the body to [email protected]. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/