linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kanoj-mm4.0-2.2.9 Free up VM_GROWSUP for new use
@ 1999-05-31 19:39 Kanoj Sarcar
  0 siblings, 0 replies; only message in thread
From: Kanoj Sarcar @ 1999-05-31 19:39 UTC (permalink / raw)
  To: linux-mm; +Cc: torvalds

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
kanoj@engr.sgi.com


--- arch/mips/kernel/irixelf.c	Mon May 31 12:21:02 1999
+++ irixelf.c1	Mon May 31 12:22:16 1999
@@ -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;
--- fs/binfmt_elf.c	Mon May 31 12:20:57 1999
+++ binfmt_elf.c1	Mon May 31 12:22:02 1999
@@ -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.h	Mon May 31 12:20:50 1999
+++ mm.h1	Mon May 31 12:26:08 1999
@@ -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 majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-05-31 19:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-31 19:39 [PATCH] kanoj-mm4.0-2.2.9 Free up VM_GROWSUP for new use Kanoj Sarcar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox